federomero / pretty-json

Atom plugin. Format JSON documents.
MIT License
93 stars 23 forks source link

Prettify truncates zeros after float value #66

Closed qiaojianjack closed 7 years ago

qiaojianjack commented 7 years ago

When I do prettify on { "float": 1.0 }

It becomes

{
    "float": 1
}

which should have been

{
    "float": 1.0
}

This is troublesome when I try to pretty format a lot of the data modeling language dumps (such as Apache Avro records), because the .0 there matters for the encoders in that language to recognize the value as not integer.

lexicalunit commented 7 years ago

This is a duplicate of #46, see the discussion there for more details. Sadly the is no solution for this issue.