Quoting constructs: Difference between revisions

(→‎{{header|jq}}: textually)
Line 111:
"Data" in the context of jq can be understood to mean a JSON value or a stream
of such values. Such data can be included in a jq program wherever an expression is allowed, but
in a jq program, consecutive JSON values must be specified using "," as a separator, as shown in this snippet:<lang jq>def data:
<lang jq>def data:
"A string", 1, {"a":0}, [1,2,[3]]
;
Line 119 ⟶ 120:
+ "long string after all."</lang>
"Raw data", such as character strings that are not expressed as JSON strings,
cannot be included in jq programs textually but must be "imported" in some manner, e.g. from
environment variables, text files, or using command-line arguments options.
 
 
=={{header|Julia}}==
2,467

edits