Filter JSON and JSON Lines data using Python syntax
Filter JSON and JSON Lines data with Python syntax
jello$ echo '{"name": "John", "age": 30}' | jello _.name$ echo '[{"id": 1, "active": true}, {"id": 2, "active": false}]' | jello '[x for x in _ if x["active"]]'$ echo '{"values": [1, 2, 3]}' | jello '{"sum": sum(_.values), "count": len(_.values)}'