JSON2binary
Name | Type | Description | Optional |
---|---|---|---|
input |
?0 |
data of JSON-compatible type |
no |
Name | Type | Description | Optional |
---|---|---|---|
output |
vector<uint8> |
external representation of input |
no |
JSON2binary
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.)
JSON2binary
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.