jq
The jq protocol:
protocol JQ {
func run(_ string: String, _ filter: String) -> String
}Available in OK JSON 2.5+.
$jq.run
let result = $jq.run(`{"foo": 42, "bar": "less interesting data"}`, `.foo`) // 42You can process JSON string with jq (opens in a new tab)