JSON parsing and writing.
More...
|
| map | Parse (string jsonText) |
| | Decodes a string value into a map value.
|
| string | ToString (value json, boolean prettyPrint) |
| | Converts a value into a JSON string.
|
JSON parsing and writing.
◆ Parse()
| map JSON.Parse |
( |
string | jsonText | ) |
|
Decodes a string value into a map value.
- Parameters
-
| jsonText | JSON-compliant text. |
- Returns
- Returns a map value if the text can be decoded, otherwise returns null.
◆ ToString()
| string JSON.ToString |
( |
value | json, |
|
|
boolean | prettyPrint ) |
Converts a value into a JSON string.
- Parameters
-
| json | The value to convert. |
| prettyPrint | Whether to use spacing and newlines in the text. |
- Returns
- Returns a JSON string based on the value.