write-json ( obj -- ) - Factor Documentation

write-json ( obj -- )
JSON serialization



Vocabulary
json

Inputs
obj an object


Outputs
None

Word description
Serializes the object into a JSON formatted string and outputs it to the standard output stream.

Some options can control the formatting of the result:
json-allow-fp-special? Allow special floating-points: NaN, Infinity, -Infinity
json-friendly-keys? Convert - to _ in tuple slots and hashtable keys
json-coerce-keys? Coerce hashtable keys into strings
json-escape-slashes? Escape forward slashes inside strings
json-escape-unicode? Escape unicode values inside strings


See also
>json

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

Definition
USING: io namespaces ;

IN: json

: write-json ( obj -- ) output-stream get stream-write-json ;

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