UtilJsonParseJsonLightweight Method

Overload List

ParseJsonLightweight(String) Parses a JSON string and returns a DictionaryTKey, TValue representing the JSON key-value pairs.

Note: This method is a lightweight, free dependency solution to parse a JSON string.

Original author: https://stackoverflow.com/a/13192508/1248295

Consider to use it only when adding external references (like JSON.net) to the project is either extremely problematic or impossible.

ParseJsonLightweightTValue(String) Parses a JSON string and returns a DictionaryTKey, TValue representing the JSON key-value pairs, where all the values are casted to the specified 'TValue' type.

Note: This method is a lightweight, free dependency solution to parse a JSON string.

Original author: https://stackoverflow.com/a/13192508/1248295

Consider to use it only when adding external references (like JSON.net) to the project is either extremely problematic or impossible.

See Also