However after I use it in aplication SCADA system with VBA underneath I got error.
C# cannot find system.text.json. Newtonsoft deals with this because its a common use case in Net. Public bool TryGetInt32 out int value. This means any call to a JsonSerializerDeserialize overload that takes a reader instance custom converters or other usages.
Could not load file or assembly SystemTextJson Version4000 Cultureneutral PublicKeyTokencc7b13ffcd2ddd51 or one of its dependencies. Is an invalid start of a value. SystemTextJson only accepts property names and string values in double quotes because that format is required by the RFC 8259 specification and is the only format considered valid JSON.
Could not load file or assembly SystemBuffers Version4020 Culture neutral PublicKeyTokencc7b13ffcd2ddd51 or one of its dependencies. The classes allow us to serialize objects into JSON text and deserialize JSON text to objects. So if you have a variable such as MyData it will get serialised as myData.
Yes there are number of other constructs that SystemTextJson uses that are not compatible with full AOT compilation. Attempts to represent the current JSON number as an Int32. A value enclosed in single quotes results in a JsonException with the following message.
So whats the issue. Non-string values for string properties. However I couldnt find such a feature in SystemTextJSON And when Ive tried to Serialize the same object with JsonSerializer.
It also provides types to read and write JSON text encoded as UTF-8 and to create an in-memory document object model DOM for random access of the JSON. Var mike new Employee Name Mike Manager. Interestingly when the JSON is serialised it is serialised into camelCase.