JIL.NET JSON Exception Exception

I run simple deserialization in the native event type with:

JSON.Deserialize<Event>(text);

with the exception of:

An exception of type 'Jil.DeserializationException' occurred in Jil.dll but was not handled in user code.
Additional information: Expected character: '\'

Deserialization Newtonsoft JSON works well on the same json, JSONLint JSON is also validated. Any clues here? I tried passing the string as well as using (StringReader) as suggested on the github JIL page.

+4
source share
1 answer

Without seeing the JSON-String, you are trying to deserialize, I'm not so sure, but ultimately the deserializer expects the date (time) that you are trying to deserialize to be in a different format (I think you are trying to deserialize the datetime field).

, JIL , datetimes "NewtosoftDateTime", . . https://github.com/kevin-montrose/Jil/blob/master/Jil/Deserialize/InlineDeserializer.cs#L667 , jil , .

. : https://github.com/kevin-montrose/Jil/blob/master/Jil/Options.cs

+7

All Articles