String:ToJson

Last updated 5 August 2026

String:ToJson takes any Node editor Datatype

and converts it to a JSON compatible String.

Pin Info

Input 1: Input [BitMatrix, Float, Int, ResourceId, Samples, String, Timestamp, Pack]

1-Input[BitMatrix]: Emits a Json Object containing thesize of the Matrix and every value.

1-Input[Float]: Emits a the value in a Scientific format*.

1-Input[Int]: Value is simply converted to a String.

1-Input[RID]: Emits an Object with type and the actual ID.

1-Input[Samples]: Emits an Array with all the Float values

1-Input[String]: Emits the String with Quotesat the beginning and the end of the string.

1-Input[Timestamp]: Emits an Object with the ts key for Timestring and the value in Microseconds.

1-Input[Pack]: Emits an Array with all contained Elements.

Output 1: Json [String]

1-JSON[String]: Emits the converted result of the Input

Node Parameters

State: Shows ok if there are no errors

Expand:

Error: Shows any error that occures during the conversion process.

Type: Shows the detected Type of the last received Input.