Quoting constructs: Difference between revisions

Line 107:
There are 3 quoting constructs in Go.
</pre>
 
=={{header|jq}}==
"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:
"A string", 1, {"a":0}, [1,2,[3]]
;
</lang>Long JSON strings can be broken up into smaller JSON strings and concatenated
using the infix "+" operator, e.g. <lang jq>
"This is not such "
+ "long string after all."</lang>
"Raw data", such as character strings that are not expressed as JSON strings,
cannot be included in jq programs but must be "imported" in some manner, e.g. from
environment variables, text files, or using command-line arguments options.
 
 
=={{header|Julia}}==
2,442

edits