path>jsons ( path -- jsons ) - Factor Documentation

path>jsons ( path -- jsons )
JSON serialization



Vocabulary
json

Inputs
path a pathname string


Outputs
jsons a sequence of JSON objects


Word description
Reads a file into a sequence of JSON objects and returns them all.

See also
path>json , json>path , jsons>path

Definition
USING: io.encodings.utf8 io.files ;

IN: json

: path>jsons ( path -- jsons )
utf8 [ read-jsons ] with-file-reader ;

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