json vocabulary
Factor handbook ยป Vocabulary index


Documentation
JSON serialization

Metadata
Tags:parsing
Authors:Chris Double, Peter Burns, Philipp Winkler


Words

Tuple classes
ClassSuperclassSlots
json-error tuple
json-fp-special-error tuplevalue


Singleton classes
json-null


Generic words
WordStack effect
json>( string -- object )
jsonlines>( string -- objects )
stream-write-json( obj stream -- )


Symbol words
json-allow-fp-special?
json-coerce-keys?
json-escape-slashes?
json-escape-unicode?
json-friendly-keys?


Ordinary words
WordStack effect
>json( obj -- string )
>jsonlines( objects -- string )
?>json( obj -- json )
?json>( obj -- json/f )
float>json( float -- string )
if-json-null( x if-null else -- )
json-error( -- * )
json-fp-special-error( value -- * )
json-null>f( obj/json-null -- obj/f )
json>path( json path -- )
jsons>path( jsons path -- )
path>json( path -- json )
path>jsons( path -- jsons )
read-json( -- objects )
read-jsonlines( -- objects )
rewrite-json-path( path quot: ( json -- json' ) -- )
rewrite-json-string( string quot: ( json -- json' ) -- string )
rewrite-jsons-path( path quot: ( jsons -- jsons' ) -- )
rewrite-jsons-string( string quot: ( jsons -- jsons' ) -- string )
stream-read-json( stream -- objects )
stream-read-jsonlines( stream -- objects )
stream-write-jsonlines( objects stream -- )
unless-json-null( x else -- )
when-json-null( x if-null -- )
write-json( obj -- )
write-jsonlines( objects -- )


Class predicate words
WordStack effect
json-error?( object -- ? )
json-fp-special-error?( object -- ? )
json-null?( object -- ? )


Files


Metadata files


Children from resource:basis
VocabularySummary
json.prettyprint
json.ui


Children from resource:extra
VocabularySummary
json.http


Children
VocabularySummary
json.private