No description
Find a file
2022-08-05 22:49:59 +02:00
json feat: initial commit 2022-08-05 22:49:59 +02:00
json-defines feat: initial commit 2022-08-05 22:49:59 +02:00
json-split-entries feat: initial commit 2022-08-05 22:49:59 +02:00
LICENSE feat: initial commit 2022-08-05 22:49:59 +02:00
README.md feat: initial commit 2022-08-05 22:49:59 +02:00

execline-json

why would you even do that

json parser written (mostly) in execline

requirements:

  • execline
  • execline-state
  • s6-portable-utils
  • sed
  • tr
  • cut (with delimiter/fields support)

usage

#!/bin/execlineb

backtick -E users_json { curl https://gitlab.com/api/v4/users?username=ptrcnull }
json users "$users_json"
foreground { s6-echo "${users[0]}" }
s6-echo "${users[0][id]}"