json vocabulary - Factor Documentation (original) (raw)

json vocabulary
Factor handbook » Vocabulary index

Documentation
JSON serialization

Metadata

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

Words

Tuple classes

Class Superclass Slots
json-error tuple
json-fp-special-error tuple value

Singleton classes

json-null

Generic words

Word Stack 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

Word Stack 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 ( -- object )
read-jsonlines ( -- objects )
read-jsons ( -- 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 -- object )
stream-read-jsonlines ( stream -- objects )
stream-read-jsons ( 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

Word Stack effect
json-error? ( object -- ? )
json-fp-special-error? ( object -- ? )
json-null? ( object -- ? )

Files

resource:basis/json/json.factor
resource:basis/json/json-docs.factor
resource:basis/json/json-tests.factor

Metadata files

resource:basis/json/authors.txt
resource:basis/json/summary.txt
resource:basis/json/tags.txt

Children from resource:basis

Vocabulary Summary
json.prettyprint
json.ui