mirror of
https://github.com/stedolan/jq.git
synced 2024-05-11 05:55:39 +00:00
Fix manual.yml
This commit is contained in:
@@ -836,7 +836,7 @@ sections:
|
|||||||
- title: `startswith`
|
- title: `startswith`
|
||||||
body: |
|
body: |
|
||||||
|
|
||||||
Outputs true if . starts with the given string argument.
|
Outputs `true` if . starts with the given string argument.
|
||||||
|
|
||||||
examples:
|
examples:
|
||||||
- program: '[.[]|startswith("foo")]'
|
- program: '[.[]|startswith("foo")]'
|
||||||
@@ -846,7 +846,7 @@ sections:
|
|||||||
- title: `endswith`
|
- title: `endswith`
|
||||||
body: |
|
body: |
|
||||||
|
|
||||||
Outputs true if . ends with the given string argument.
|
Outputs `true` if . ends with the given string argument.
|
||||||
|
|
||||||
examples:
|
examples:
|
||||||
- program: '[.[]|endswith("foo")]'
|
- program: '[.[]|endswith("foo")]'
|
||||||
@@ -861,7 +861,7 @@ sections:
|
|||||||
|
|
||||||
examples:
|
examples:
|
||||||
- program: '[.[]|ltrimstr("foo")]'
|
- program: '[.[]|ltrimstr("foo")]'
|
||||||
input: ["fo", "foo", "barfoo", "foobar", "afoo"]
|
input: '["fo", "foo", "barfoo", "foobar", "afoo"]'
|
||||||
output: ['["fo","","barfoo","bar","afoo"]']
|
output: ['["fo","","barfoo","bar","afoo"]']
|
||||||
|
|
||||||
- title: `rtrimstr`
|
- title: `rtrimstr`
|
||||||
@@ -872,7 +872,7 @@ sections:
|
|||||||
|
|
||||||
examples:
|
examples:
|
||||||
- program: '[.[]|rtrimstr("foo")]'
|
- program: '[.[]|rtrimstr("foo")]'
|
||||||
input: ["fo", "foo", "barfoo", "foobar", "foob"]
|
input: '["fo", "foo", "barfoo", "foobar", "foob"]'
|
||||||
output: ['["fo","","bar","foobar","foob"]']
|
output: ['["fo","","bar","foobar","foob"]']
|
||||||
|
|
||||||
- title: `explode`
|
- title: `explode`
|
||||||
@@ -951,6 +951,7 @@ sections:
|
|||||||
output: ['"The input was 42, which is one less than 43"']
|
output: ['"The input was 42, which is one less than 43"']
|
||||||
|
|
||||||
- title: "Convert to/from JSON"
|
- title: "Convert to/from JSON"
|
||||||
|
body: |
|
||||||
|
|
||||||
The `tojson` and `fromjson` builtins dump values as JSON texts
|
The `tojson` and `fromjson` builtins dump values as JSON texts
|
||||||
or parse JSON texts into values, respectively. The tojson
|
or parse JSON texts into values, respectively. The tojson
|
||||||
@@ -960,13 +961,13 @@ sections:
|
|||||||
examples:
|
examples:
|
||||||
- program: '[.[]|tostring]'
|
- program: '[.[]|tostring]'
|
||||||
input: '[1, "foo", ["foo"]]'
|
input: '[1, "foo", ["foo"]]'
|
||||||
output: '["1","foo","[\"foo\"]"]'
|
output: ['["1","foo","[\"foo\"]"]']
|
||||||
- program: '[.[]|tojson]'
|
- program: '[.[]|tojson]'
|
||||||
input: '[1, "foo", ["foo"]]'
|
input: '[1, "foo", ["foo"]]'
|
||||||
output: '["1","\"foo\"","[\"foo\"]"]'
|
output: ['["1","\"foo\"","[\"foo\"]"]']
|
||||||
- program: '[.[]|tojson|fromjson]'
|
- program: '[.[]|tojson|fromjson]'
|
||||||
input: '[1, "foo", ["foo"]]'
|
input: '[1, "foo", ["foo"]]'
|
||||||
output: '[1,"foo",["foo"]]'
|
output: ['[1,"foo",["foo"]]']
|
||||||
|
|
||||||
- title: "Format strings and escaping"
|
- title: "Format strings and escaping"
|
||||||
body: |
|
body: |
|
||||||
|
Reference in New Issue
Block a user