JSON2string

SpecialNodes json2string

input ports:
Name Type Description Optional

input

?0

data of JSON-compatible type

no

output ports:
Name Type Description Optional

output

string

external representation of input

no

JSON2string produces a printed representation of a data item in JSON-compatible type. A JSON-compatible type is composed of strings, symbols, numbers, tuples, maps, lists, sets and vectors over JSON-compatible types. (See Transparency Types.)

JSON2string is roughly the same as JSON.stringify() in Javascript.

The difference between JSON2binary and JSON2string is only the type they output. JSON2string outputs a string and JSON2binary outputs a vector of unsigned bytes.