Handbook
Glossary
json> ( string -- object )
JSON serialization
Next:
read-json ( -- objects )
Vocabulary
json
Inputs
string
a string in JSON format
Outputs
object
a deserialized object
Word description
Deserializes the JSON formatted string into a Factor object. JSON objects are converted to Factor hashtables. All other JSON objects convert to their obvious Factor equivalents.
See also
read-json
Definition
IN:
json
GENERIC:
json>
( string -- object )
Methods
USING:
io.streams.string
json
json.private
strings
;
M:
string
json>
[
read-json
get-json
]
with-string-reader
;