-
Notifications
You must be signed in to change notification settings - Fork 4
Input Formats
Thiago Souza edited this page Apr 7, 2018
·
2 revisions
yajs
will accept valid JSON as an input. It can either be a single root JSON object or a stream of newline delimited JSON objects.
The root object can either be:
- An object:
{ "a": { "root": "object" } }
- An array:
[ { "first": "object" }, { "second": "object" } ]
It can also process a stream of newlime delimited JSON objects:
{ "a": { "root": "object" } }
[ { "first": "object" }, { "second": "object" } ]
{ "another": "object" }
It also has (experimental) support for JSON objects with triple double-quotes such as:
{ "string": """
Some string with "quoted" stuff
"""}