Skip to content

nutteam/nut.JSON

Folders and files

NameName
Last commit message
Last commit date
Aug 15, 2015
Aug 15, 2015
Aug 15, 2015
Aug 15, 2015
Aug 15, 2015

Repository files navigation

nut-JSON


This is a JSON parser to solve Number overflow use JISON Project

##PROMBLE if you evaluate

JSON.parse('{"id":10446744073709551616}')

you will get

{id:10446744073709552000}

To make the id display collectly you need to parse JSON yourself.If the id field is just for display,it is ok to parse it as string. so

nutParser.parse('{"id":10446744073709551616}').id=='10446744073709551616'

For more detail see the design file

##REBUILD If you want to modify the source and rebuild the parser. Run node command

    $ npm install jison@0.4.13 -g
    $ jison src/grammar.y -o myParser.js

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published