Class JsonExtensions Class

Provides extension methods for reading and writing JSON strings.

Methods:

NameDescription
Public methodJsonEscape(String) Returns an escaped string for use in JSON.
Public methodToStringJson(Object) Returns a formatted JSON string representing the object.
Public methodToStringJson(Object, Boolean) Returns a JSON string representing the object.
Public methodLoadArray<T>(String) Parses a JSON snippet of an array value using the default assembly type mappings.
Public methodLoadArray<T>(String, JsonTypeResolver) Parses a JSON snippet of an array value.
Public methodLoadFromJson<T>(T, String) Parses a JSON string into an existing object using the default assembly type mappings.
Public methodLoadFromJson<T>(T, String, JsonTypeResolver) Parses a JSON string into an existing object.