Call a function: Difference between revisions
→{{header|jq}}
(→{{header|jq}}: paragraph breaks) |
|||
Line 679:
This is not directly supported but can be simulated by defining the function to accept JSON objects. For example, if fn were such a function,
we might invoke fn like so: <tt>fn( {"required": 1, "optional": 2} )</tt>.
'''Using a function in statement context'''
|