Converts arbitrary values from and to JSON (JavaScript Object Notation) strings.
More...
|
| static string | ToJson (object value) |
| | Converts value into JSON string. More...
|
| |
| static object | FromJson (string value) |
| | Converts value from JSON string More...
|
| |
| static T | FromJson< T > (string value) |
| | Converts value from JSON string to T object More...
|
| |
| static IDictionary< string, object > | ToNullableMap (string value) |
| | Converts JSON string into map object or returns null when conversion is not possible. More...
|
| |
| static IDictionary< string, object > | ToMap (string value) |
| | Converts JSON string into map object or returns empty map when conversion is not possible. More...
|
| |
| static IDictionary< string, object > | ToMapWithDefault (string value, IDictionary< string, object > defaultValue) |
| | Converts JSON string into map object or returns default map when conversion is not possible. More...
|
| |
Converts arbitrary values from and to JSON (JavaScript Object Notation) strings.
var value1 = JsonConverter.fromJson("{\"key\":123}");
var value2 = JsonConverter.ToMap({ key: 123});