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
hotchaipro edited this page Oct 24, 2018
·
4 revisions
Serialize.NET supports reading and writing JSON content using the JsonObjectReader and JsonObjectWriter classes, respectively.
Limitations
The JSON format output by JsonObjectWriter is valid JSON (as can be verified using JSONLint), however, JsonObjectReader cannot read any arbitrary JSON document.
JsonObjectReader does not support top-level arrays. This is to ensure that all serialized objects support backward compatibility through adding new members.
JsonObjectReader supports only integer member names. You can create a dictionary to map strings to these integer names if you wish, but this is not natively supported by the reader at the time of this writing. If you're looking for a more general-purpose JSON reader, check out my HotChai.Json project.
Note that the JSON output by JsonObjectWriter meets these requirements.
More information
For more information about JSON encoding, see http://json.org.