Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR SHELL

jq select where

json='[
	{
	  "location": "Stockholm",
	  "name": "Walt"
	},
	{
		"location": "Germantown",
		"name": "Donald"
	}
]'

echo $json  | jq '.[] | select(.location=="Stockholm")' 
Source by stackoverflow.com #
 
PREVIOUS NEXT
Tagged: #jq #select
ADD COMMENT
Topic
Name
9+5 =