Type detection: Difference between revisions
m
→{{header|jq}}
m (→{{header|jq}}) |
|||
Line 1,010:
JSON document, and if so, what JSON type it would have, as follows:
def typeof:
try (fromjson | type) catch "string"
Here is an illustrative transcript from an interactive session showing input and output on alternate lines:
Line 1,023:
"array"
</pre>
=={{header|Julia}}==
|