79426337

Date: 2025-02-10 07:26:11
Score: 0.5
Natty:
Report link

You can walk through the json object, and if it is a number, multiply by 100, round, and then divide by 100. This will give two decimal positions (not two significant figures). But it produces your expected output, however a = -0

jq 'walk(if type == "number" then (.* 100 | round / 100) else . end)' data.json

Reasons:
  • Low length (0.5):
  • Has code block (-0.5):
  • Low reputation (0.5):
Posted by: Hodgson