Hacker News new | past | comments | ask | show | jobs | submit login

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.




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}




Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: