cat ./wednesday.json | ./build/output/jsonfilter -json Address
{"City":"New York","State":"New York","Street":"0001 Cemetery Lane"}
cat ./wednesday.json | ./build/output/jsonfilter -json Hobbies
["homicide","playing with her headless Marie Antoinette doll","spiders"]
cat ./wednesday.json | ./build/output/jsonfilter -pretty Address
{
"City": "New York",
"State": "New York",
"Street": "0001 Cemetery Lane"
}
cat ./wednesday.json | ./build/output/jsonfilter -values Hobbies
homicide
playing with her headless Marie Antoinette doll
spiders
cat ./wednesday.json | ./build/output/jsonfilter -values -json Hobbies
"homicide"
"playing with her headless Marie Antoinette doll"
"spiders"
JSON=$(cat ./wednesday.json | ./build/output/jsonfilter -values -json Parents)
while read -r parent; do
echo "$parent" | ./build/output/jsonfilter Name
done <<< "$JSON"
Gomez
Morticia
cat ./wednesday.json | ./build/output/jsonfilter -json Address | ./build/output/jsonfilter Street
0001 Cemetery Lane
cat ./wednesday.json | ./build/output/jsonfilter Address > /dev/null && echo found
found
make on drone is failing because it inherits this code...
cat ./wednesday.json | ./build/output/jsonfilter Flub > /dev/null || echo not found
not found
cat ./wednesday.json | ./build/output/jsonfilter Address.Street
0001 Cemetery Lane