Pragmatic directives: Difference between revisions
→{{header|jq}}
m (→{{header|Phix}}: sp) |
|||
Line 448:
}
</syntaxhighlight>
=={{header|jq}}==
'''Works with jq, the C implementation of jq'''
'''Works with gojq, the Go implementation of jq'''
jq supports directives for including or importing a jq module, as exemplified by:
<pre>
include "m" {"search": "."};
</pre>
In this example, the module "m.jq" in the present working directory would be "transcluded" as if by inlining the contents of the file m.jq.
The "search" key specifies a pathname or array of pathnames to be searched.
Note that the JSON object that may be specified in an "include" directive must be a constant.
=={{header|Julia}}==
|