>json ( obj -- string ) - Factor Documentation

>json ( obj -- string )
JSON serialization



Vocabulary
json

Inputs
obj an object


Outputs
string the object converted to JSON format


Word description
Serializes the object into a JSON formatted string.

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

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

Definition
USING: io.streams.string ;

IN: json

: >json ( obj -- string ) [ write-json ] with-string-writer ;

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