JSON Utilities
Nodes to build and read JSON objects and values, e.g. for user data and the authentication payload.
Functions
| Node | Type | Description |
|---|---|---|
| As Array | Pure function | Returns the value as an array of JSON values. |
| As Bool | Pure function | Returns the value as a boolean. |
| As Number | Pure function | Returns the value as a number. |
| As Object | Pure function | Returns the value as a JSON object. |
| As String | Pure function | Returns the value as a string. |
| Construct Json Array Value | Callable function | Creates a JSON value that holds an array of JSON values. |
| Construct Json Bool Value | Callable function | Creates a JSON value that holds a boolean. |
| Construct Json Number Value | Callable function | Creates a JSON value that holds a number. |
| Construct Json Object | Callable function | Creates an empty JSON object. |
| Construct Json Object From Bytes | Callable function | Creates a JSON object by parsing UTF-8 encoded JSON bytes, e.g. |
| Construct Json Object From String | Callable function | Creates a JSON object by parsing a JSON string. |
| Construct Json Object Value | Callable function | Creates a JSON value that holds a JSON object. |
| Construct Json String Value | Callable function | Creates a JSON value that holds a string. |
| Decode Json | Callable function | Decodes a JSON string. |
| Encode Json | Pure function | Serializes the object to a JSON string. |
| Encode Json Bytes | Pure function | Serializes the object to UTF-8 encoded JSON bytes, e.g. |
| Get Array Field | Pure function | Returns the elements of an array field as JSON values. |
| Get Bool Array Field | Pure function | Returns the elements of an array field as booleans. |
| Get Bool Field | Pure function | Returns the value of a boolean field. |
| Get Field | Pure function | Returns the value of a field as a JSON value. |
| Get Field Names | Pure function | Returns the names of all fields of the object. |
| Get Number Array Field | Pure function | Returns the elements of an array field as numbers. |
| Get Number Field | Pure function | Returns the value of a number field. |
| Get Object Array Field | Pure function | Returns the elements of an array field as JSON objects. |
| Get Object Field | Pure function | Returns the value of an object field as a JSON object. |
| Get String Array Field | Pure function | Returns the elements of an array field as strings. |
| Get String Field | Pure function | Returns the value of a string field. |
| Get Type | Pure function | Returns the type of the value. |
| Get Type String | Pure function | Returns the type of the value as a string. |
| Has Field | Pure function | Returns true if the object has a field with the given name. |
| Is Null | Pure function | Returns true if the value is null. |
| Merge Json Object | Callable function | Copies all fields of another JSON object into this one. |
| Remove Field | Callable function | Removes the field with the given name. |
| Reset | Callable function | Removes all fields of the object. |
| Set Array Field | Callable function | Sets a field to an array of JSON values. |
| Set Bool Array Field | Callable function | Sets a field to an array of booleans. |
| Set Bool Field | Callable function | Sets a field to a boolean. |
| Set Field | Callable function | Sets a field to a JSON value. |
| Set Field Null | Callable function | Sets a field to null. |
| Set Number Array Field | Callable function | Sets a field to an array of numbers. |
| Set Number Field | Callable function | Sets a field to a number. |
| Set Object Array Field | Callable function | Sets a field to an array of JSON objects. |
| Set Object Field | Callable function | Sets a field to a JSON object. |
| Set String Array Field | Callable function | Sets a field to an array of strings. |
| Set String Field | Callable function | Sets a field to a string. |