tulios / json-viewer

It is a Chrome extension for printing JSON and JSONP.
https://chrome.google.com/webstore/detail/json-viewer/gbmdgpbipfallnflgajpaliibnhdgobh
MIT License
3.33k stars 679 forks source link

Not parsing valid RFC JSON input when containing int64 values #111

Open alombarte opened 7 years ago

alombarte commented 7 years ago

Hi,

I found that some API responses were not parsing correctly and I found the root cause. It looks that the extension does not work when there are attributes using int64 data types.

The following example is a simple and valid JSON string according to the RFC-4627, RFC-7159 and ECMA-404 but it won't render:

{
    "id": 1.478555574e+09
}

Thanks for this excellent extension.

tulios commented 7 years ago

Hi @alombarte, thanks for the report, I'll take a look.

tulios commented 6 years ago
screen shot 2017-10-23 at 18 09 19
alombarte commented 6 years ago

Can't test, but sample looks good.