forked from ohler55/ojg
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathnotes
More file actions
44 lines (37 loc) · 1.03 KB
/
notes
File metadata and controls
44 lines (37 loc) · 1.03 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
----------------
- token
- decide if - is a valid character or where
- child, ok
- script, not
- coverage
- set
- cmd/oj
- set option
- |$.foo|| for delete
- |$.foo|{"x":1}| for replace/set
- |$.foo|@.bar| for set from within
- eval in order
- use any char as separator
- also jp.Expr.Set(jp.Expr)
- find with first path and replace with path arg relative to found
- regex op =~
- /^xyz&/
- in addition to parse callback support chan for results
- cmd/oj
- read args from file (SEN format)
- also check ~/.oj.fin or ~/.oj - graphql emacs mode works well
- palette in cfg file
- build or restructure json
- use a template based approach along with JSONPath
- advanced ops
- in - a in [1,2,3]
- exists, empty, or has
- size or length - [?(@.x size > 3)] or [?(size @.x > 3)]
-------------
- cmd/oj
-colors list of colors or maybe map?
-p (palette) key=red
-key red
------------------
- Match a JavaScript regular expression. For example, [?(@.description =~ /cat.*/i)]
- Exists syntax? [?(@.x exists)]