Wiki source for CommandJsonread
======Command jsonread======
====Name====
**jsonread** Reads a JSON document into a variable
====Synopsis====
**jsonread** variable
Reads up to EOF from stdin and parses the stream as a JSON document and assigns it to the specified variable.
====Examples====
Example: Read into variable a JSON document from a file
%%
jsonread a < file.json
%%
Example: Read into variable a JSON document from a Here Document.
%%
jsonread a <<EOF
{
"a" : 1
"b" : [ 2.5 , "hi" ]
}
EOF
%%
----
[[Commands]]
[[CategoryCommands]]
====Name====
**jsonread** Reads a JSON document into a variable
====Synopsis====
**jsonread** variable
Reads up to EOF from stdin and parses the stream as a JSON document and assigns it to the specified variable.
====Examples====
Example: Read into variable a JSON document from a file
%%
jsonread a < file.json
%%
Example: Read into variable a JSON document from a Here Document.
%%
jsonread a <<EOF
{
"a" : 1
"b" : [ 2.5 , "hi" ]
}
EOF
%%
----
[[Commands]]
[[CategoryCommands]]