33 Commits (a4da043b17f02face92c88e24e61b03f7434c205)

Author SHA1 Message Date
Zhijiang TAO eb4d67a68e using longlong for internel storage 7 years ago
Zhijiang TAO f6b4188933 添加int64类型,但是还是会溢出 7 years ago
Austin Brunkhorst 40f10bd28d Use `false` instead of `0` + conversion. 7 years ago
Austin Brunkhorst 467dc6ae05 Fixes warning C4800: 'int': forcing value to bool 'true' or 'false' on MSVC 14 7 years ago
j4cbo 8452587160 Merge pull request #55 from Dushistov/parse_not_full_json
Parse half ready json
7 years ago
Evgeniy A. Dushistov 0e4ace7e40 make parser invisible from outside 7 years ago
Evgeniy A. Dushistov 33bca8e178 implement parsing of chunked json
Update: add more tests + use parser.failed
7 years ago
Peter Steinberger e1d5bcc94d This fixes a “No previous prototype for function” warning. 8 years ago
Antonio Cervone ebc3a6b038 watch out for i+1 to overflow the buffer 8 years ago
Antonio Cervone 988a8fc249 make JsonParser::strategy const 8 years ago
Antonio Cervone 49a6197d08 use an enum to select strategy on comment parsing 8 years ago
Antonio Cervone 4b0f5cfd77 check for end of input on every increment of the cursor 8 years ago
Antonio Cervone 2f5c64225d detect malformed comments 8 years ago
Antonio Cervone b05e655c0a detect multiple comments with a loop instead of using recursion 8 years ago
Antonio Cervone 882feb56ac add bool to detect comments as run-time option. 8 years ago
Antonio Cervone 08c391f89a introduce consume_garbage()
new routine that consumes whitespaces and comments.
activated by JSON11_COMMENTS pre-processor flag.
8 years ago
Antonio Cervone 2d1d176a55 add routine to detect c-style comments 8 years ago
Jean-Claude Monnin 0e8c5ba68f When dumping non-finite floating point values, output 'null'.
In JSON the float point special values NaN and Infinity should serialised to 'null'.
Previously, 'snprintf' in 'dump' was giving a string that isn't compliant to the JSON standard.
8 years ago
Andrew Krieger e15ff418dd For extra safety, add an explicit bounds check in utf8 parsing. 8 years ago
Steven Kabbes cfdd67577c Use strtod not atof 8 years ago
Steve Carroll ae9542cc35 in encode_utf8, there is an implicit truncating cast that VS2015CTP6 is
warning about.  I've added static_cast<char> to silence the warning and
express the intent.
8 years ago
k0zmo 7fd738ae42 iterate over pair of const string and Json 9 years ago
j4cbo be631169db Merge pull request #24 from masamitsu-murase/use_compare
Use string::compare to improve performance.
9 years ago
Masamitsu MURASE 37ca641d82 Use static_cast instead of reinterpret_cast for hierarchy navigation. 9 years ago
Masamitsu MURASE c6a8736171 Use string::compare to improve performance. 9 years ago
Jacob Potter 6de4c29e76 fix int->double->int conversion in JsonInt 9 years ago
Jacob Potter 73baf7e677 Style fixes 9 years ago
Jacob Potter 679e4b83d2 Another VS14 fix 9 years ago
Jacob Potter d9bdd84c76 Limit maximum nesting depth (issue reported by Jeff Larson) 9 years ago
Jacob Potter 277e1b166f Make Json safe to use during static initialization. 9 years ago
Jacob Potter d2e5485973 Spacing fix 9 years ago
Jacob Potter 979cb4ca76 Add LICENSE.txt; some minor cleanups
- Add LICENSE.txt
- Add a comment about how we handle numbers
- Add more test code
- Fix a narrowing-conversion issue
- Fix a comment typo
10 years ago
Jacob Potter fe5e2167a5 Initial commit 10 years ago