Quoting constructs: Difference between revisions
Content added Content deleted
(→{{header|jq}}: textually) |
|||
Line 111: | Line 111: | ||
"Data" in the context of jq can be understood to mean a JSON value or a stream |
"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 |
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 |
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]] |
"A string", 1, {"a":0}, [1,2,[3]] |
||
; |
; |
||
Line 119: | Line 120: | ||
+ "long string after all."</lang> |
+ "long string after all."</lang> |
||
"Raw data", such as character strings that are not expressed as JSON strings, |
"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 |
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. |
environment variables, text files, or using command-line arguments options. |
||
=={{header|Julia}}== |
=={{header|Julia}}== |