json> ( string -- object ) - Factor Documentation

json> ( string -- object )
JSON serialization



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.

Notes
The full name of this word could be json-string>object.

See also
>json , read-json , read-jsons , write-json

Definition
IN: json

GENERIC: json> ( string -- object )


Methods
USING: io.streams.string json json.private strings ;

M: string json> [ read-jsons get-json ] with-string-reader ;

AltStyle によって変換されたページ (->オリジナル) /