Hacker News new | ask | show | jobs
by jrochkind1 1595 days ago
It is reminiscent of a feature in YAML that has bitten people.

But, clearly there is a use-case for producing json with integer, null, and boolean values.

2 comments

Of course there is, but it should be done explicitly - i.e. treat as a string by default but use -n if it's a number rather than having a guess.
Here is how HTTPie does it:

  x=005  // {"x": "005"}
  X:=005 // {"x": 5}