(Thought up by @tangkong)
For a table:
cat /cds/group/pcds/pyps/apps/hutch-python/device_config/db.json | jq '[ to_entries[] | .value ]' | json-to-table - --columns name beamline --sort-key name
JSON information could be readily retrieved with just jq from the database
(Thought up by @tangkong)
For a table:
cat /cds/group/pcds/pyps/apps/hutch-python/device_config/db.json | jq '[ to_entries[] | .value ]' | json-to-table - --columns name beamline --sort-key nameJSON information could be readily retrieved with just
jqfrom the database