You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
ptrcnull cdf822bc4e docs: add disclaimer 4 days ago
LICENSE feat: initial commit 4 days ago
README.md docs: add disclaimer 4 days ago
json feat: initial commit 4 days ago
json-defines feat: initial commit 4 days ago
json-split-entries feat: initial commit 4 days ago

README.md

execline-json

why would you even do that

json parser written (mostly) in execline

this is a joke, it's not a proper json parser and probably even has some command injection vulnerability. do NOT use this.

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]}"