Command jsonread
Name
jsonread Reads a JSON document into a variableSynopsis
jsonread variableReads 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 filejsonread 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