Skip to main content
Version: 2.x

JSON Utilities

Nodes to build and read JSON objects and values, e.g. for user data and the authentication payload.

Functions​

NodeTypeDescription
As ArrayPure functionReturns the value as an array of JSON values.
As BoolPure functionReturns the value as a boolean.
As NumberPure functionReturns the value as a number.
As ObjectPure functionReturns the value as a JSON object.
As StringPure functionReturns the value as a string.
Construct Json Array ValueCallable functionCreates a JSON value that holds an array of JSON values.
Construct Json Bool ValueCallable functionCreates a JSON value that holds a boolean.
Construct Json Number ValueCallable functionCreates a JSON value that holds a number.
Construct Json ObjectCallable functionCreates an empty JSON object.
Construct Json Object From BytesCallable functionCreates a JSON object by parsing UTF-8 encoded JSON bytes, e.g.
Construct Json Object From StringCallable functionCreates a JSON object by parsing a JSON string.
Construct Json Object ValueCallable functionCreates a JSON value that holds a JSON object.
Construct Json String ValueCallable functionCreates a JSON value that holds a string.
Decode JsonCallable functionDecodes a JSON string.
Encode JsonPure functionSerializes the object to a JSON string.
Encode Json BytesPure functionSerializes the object to UTF-8 encoded JSON bytes, e.g.
Get Array FieldPure functionReturns the elements of an array field as JSON values.
Get Bool Array FieldPure functionReturns the elements of an array field as booleans.
Get Bool FieldPure functionReturns the value of a boolean field.
Get FieldPure functionReturns the value of a field as a JSON value.
Get Field NamesPure functionReturns the names of all fields of the object.
Get Number Array FieldPure functionReturns the elements of an array field as numbers.
Get Number FieldPure functionReturns the value of a number field.
Get Object Array FieldPure functionReturns the elements of an array field as JSON objects.
Get Object FieldPure functionReturns the value of an object field as a JSON object.
Get String Array FieldPure functionReturns the elements of an array field as strings.
Get String FieldPure functionReturns the value of a string field.
Get TypePure functionReturns the type of the value.
Get Type StringPure functionReturns the type of the value as a string.
Has FieldPure functionReturns true if the object has a field with the given name.
Is NullPure functionReturns true if the value is null.
Merge Json ObjectCallable functionCopies all fields of another JSON object into this one.
Remove FieldCallable functionRemoves the field with the given name.
ResetCallable functionRemoves all fields of the object.
Set Array FieldCallable functionSets a field to an array of JSON values.
Set Bool Array FieldCallable functionSets a field to an array of booleans.
Set Bool FieldCallable functionSets a field to a boolean.
Set FieldCallable functionSets a field to a JSON value.
Set Field NullCallable functionSets a field to null.
Set Number Array FieldCallable functionSets a field to an array of numbers.
Set Number FieldCallable functionSets a field to a number.
Set Object Array FieldCallable functionSets a field to an array of JSON objects.
Set Object FieldCallable functionSets a field to a JSON object.
Set String Array FieldCallable functionSets a field to an array of strings.
Set String FieldCallable functionSets a field to a string.