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