File: jo.21.sh

package info (click to toggle)
jo 1.9-2
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid, trixie
  • size: 612 kB
  • sloc: ansic: 1,914; sh: 566; makefile: 60; exp: 42
file content (10 lines) | stat: -rw-r--r-- 191 bytes parent folder | download | duplicates (2)
1
2
3
4
5
6
7
8
9
10
# read nested json elements

echo '{"a":1,"b":"val"}' > $$.1

${JO:-jo} nested=:$$.1

# nested json within object path
${JO:-jo} -d . top.obj1.c=3 top.obj1.d="key" top.obj2=:$$.1

rm -f $$.1