Parsing float value from string by jq
Simply with jq's tonumber
function:
jq '.[] | select((.a|tonumber) > 50 and (.b|tonumber) > 50)' mydata.json
The output:
{ "a": "70.0", "b": "92.67", "c": "0", "d": "0"}
Simply with jq's tonumber
function:
jq '.[] | select((.a|tonumber) > 50 and (.b|tonumber) > 50)' mydata.json
The output:
{ "a": "70.0", "b": "92.67", "c": "0", "d": "0"}