wiki

knowledgebase of randomness
git clone git://parazyd.org/wiki.git
Log | Files | Refs

JSON.wiki (308B)


      1 = json knowledgebase =
      2 
      3 == parsing with jq (linux cli) ==
      4 
      5 	{{{
      6 	cat companies.json | jq '.[].id'
      7 
      8 	cat history.json| jq '.[] | length' |wc -l
      9 
     10 	cat companies.json | jq '.[] | select( .id | contains("dyne")) | .vat'
     11 	}}}
     12 
     13 use "jq -e" to return exitcodes. see jq(1)
     14 
     15 use "jq -r" to return raw data without ""