Converts JSON string into a value of type specified by a TypeCode.
the TypeCode for the data type into which 'value' is to be converted.
the JSON string to convert.
converted object value or null when value is null.
Converts value into JSON string.
the value to convert.
JSON string or null when value is null.
Converts JSON string into map object or returns empty map when conversion is not possible.
the JSON string to convert.
Map object value or empty object when conversion is not supported.
Converts JSON string into map object or returns default value when conversion is not possible.
the JSON string to convert.
the default value.
Map object value or default when conversion is not supported.
Converts JSON string into map object or returns null when conversion is not possible.
the JSON string to convert.
Map object value or null when conversion is not supported.
Generated using TypeDoc
Converts arbitrary values from and to JSON (JavaScript Object Notation) strings.
Example
let value1 = JsonConverter.fromJson("{\"key\":123}"); // Result: { key: 123 } let value2 = JsonConverter.toMap({ key: 123}); // Result: "{\"key\":123}"
TypeCode