mirror of
https://github.com/stedolan/jq.git
synced 2024-05-11 05:55:39 +00:00
@@ -537,6 +537,18 @@ sections:
|
|||||||
input: '[1, "1", [1]]'
|
input: '[1, "1", [1]]'
|
||||||
output: ['"1"', '"1"', '"[1]"']
|
output: ['"1"', '"1"', '"[1]"']
|
||||||
|
|
||||||
|
- title: `type`
|
||||||
|
body: |
|
||||||
|
|
||||||
|
The `type` function returns the type of its argument as a
|
||||||
|
string, which is one of null, boolean, number, string, array
|
||||||
|
or object.
|
||||||
|
|
||||||
|
examples:
|
||||||
|
- program: 'map(type)'
|
||||||
|
input: '[0, false, [], {}, null, "hello"]'
|
||||||
|
output: ['["number", "boolean", "array", "object", "null", "string"]']
|
||||||
|
|
||||||
- title: `sort, sort_by`
|
- title: `sort, sort_by`
|
||||||
body: |
|
body: |
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user