Hacker Newsnew | past | comments | ask | show | jobs | submitlogin

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}




Consider applying for YC's Fall 2025 batch! Applications are open till Aug 4

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

Search: