@@ -187,30 +187,30 @@ Extras
187
187
Extensions
188
188
----------
189
189
190
- +--------------+----------------------------------------------+
191
- | name | Example |
192
- +==============+==============================================+
193
- | len | - $.objects.`len` |
194
- +--------------+----------------------------------------------+
195
- | sub | - $.field.`sub(/foo\\\\ +(.*)/, \\\\ 1)` |
196
- +--------------+----------------------------------------------+
197
- | split | - $.field.`split(+, 2, -1)` |
198
- | | - $.field.`split(sep, segement, maxsplit)` |
199
- +--------------+----------------------------------------------+
200
- | sorted | - $.objects.`sorted` |
201
- | | - $.objects[\\ some_field] |
202
- | | - $.objects[\\ some_field,/other_field] |
203
- +--------------+----------------------------------------------+
204
- | filter | - $.objects[?(@some_field > 5)] |
205
- | | - $.objects[?some_field = "foobar")] |
206
- | | - $.objects[?some_field =~ "foobar")] |
207
- | | - $.objects[?some_field > 5 & other < 2)] |
208
- +--------------+----------------------------------------------+
209
- | arithmetic | - $.foo + "_" + $.bar |
210
- | (-+*/) | - $.foo * 12 |
211
- | | - $.objects[*].cow + $.objects[*].cat |
212
- +--------------+----------------------------------------------+
213
-
190
+ +--------------+----------------------------------------------- +
191
+ | name | Example |
192
+ +==============+=============================================== +
193
+ | len | - `` $.objects.`len` `` |
194
+ +--------------+----------------------------------------------- +
195
+ | sub | - `` $.field.`sub(/foo\\\\+(.*)/, \\\\1)` `` |
196
+ +--------------+----------------------------------------------- +
197
+ | split | - `` $.field.`split(+, 2, -1)` `` |
198
+ | | - `` $.field.`split(sep, segement, maxsplit)``` |
199
+ +--------------+----------------------------------------------- +
200
+ | sorted | - `` $.objects.`sorted` `` |
201
+ | | - `` $.objects[\\some_field] `` |
202
+ | | - `` $.objects[\\some_field,/other_field] `` |
203
+ +--------------+----------------------------------------------- +
204
+ | filter | - `` $.objects[?(@some_field > 5)] `` |
205
+ | | - `` $.objects[?some_field = "foobar")] `` |
206
+ | | - `` $.objects[?some_field =~ "foobar")] `` |
207
+ | | - `` $.objects[?some_field > 5 & other < 2)] `` |
208
+ +--------------+----------------------------------------------- +
209
+ | arithmetic | - `` $.foo + "_" + $.bar `` |
210
+ | (-+*/) | - `` $.foo * 12 `` |
211
+ | | - `` $.objects[*].cow + $.objects[*].cat `` |
212
+ +--------------+----------------------------------------------- +
213
+ -
214
214
About arithmetic and string
215
215
---------------------------
216
216
@@ -228,10 +228,10 @@ Example with data::
228
228
'fish': 'bar'
229
229
}
230
230
231
- | ** cow + fish** returns ** cowfish**
232
- | ** $.cow + $.fish** returns ** foobar**
233
- | ** $.cow + "_" + $.fish** returns ** foo_bar**
234
- | ** $.cow + "_" + fish** returns ** foo_fish**
231
+ | `` cow + fish`` returns `` cowfish``
232
+ | `` $.cow + $.fish`` returns `` foobar``
233
+ | `` $.cow + "_" + $.fish`` returns `` foo_bar``
234
+ | `` $.cow + "_" + fish`` returns `` foo_fish``
235
235
236
236
About arithmetic and list
237
237
-------------------------
@@ -245,7 +245,7 @@ Example with data::
245
245
{'cow': 4, 'cat': 6}
246
246
]}
247
247
248
- | ** $.objects[\*].cow + $.objects[\*].cat** returns ** [6, 9]**
248
+ | `` $.objects[\*].cow + $.objects[\*].cat`` returns `` [6, 9]``
249
249
250
250
More to explore
251
251
---------------
0 commit comments