You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Newtonsoft.Json can parse JSON in different ways, both with and without using a String representation and this will give you different results (e.g. a String cannot exceed 1,073,741,824 characters (due to the 2GiB single object size limit and the fact String always uses UTF-16) so that's an upper-limit when using JsonConvert.DeserializeObject<T>(String) but you should be able to read an input stream exceeding that limit using JsonTextReader and passing that into DeserializeObject.
Additionally, the first-party JSON parser that shipped with WCF 3.5 ( System.Runtime.Serialization.Json is built on the XML parser, which means it inherits the configurable nested object depth-limit - and I've seen this is not well understood in the .NET community - so just throwing that out there.
The text was updated successfully, but these errors were encountered:
Newtonsoft.Json
can parse JSON in different ways, both with and without using aString
representation and this will give you different results (e.g. aString
cannot exceed1,073,741,824
characters (due to the 2GiB single object size limit and the factString
always uses UTF-16) so that's an upper-limit when usingJsonConvert.DeserializeObject<T>(String)
but you should be able to read an input stream exceeding that limit usingJsonTextReader
and passing that intoDeserializeObject
.Additionally, the first-party JSON parser that shipped with WCF 3.5 (
System.Runtime.Serialization.Json
is built on the XML parser, which means it inherits the configurable nested object depth-limit - and I've seen this is not well understood in the .NET community - so just throwing that out there.The text was updated successfully, but these errors were encountered: