1
0
mirror of https://github.com/nlohmann/json.git synced 2025-07-21 04:22:05 +03:00
Commit Graph

1029 Commits

Author SHA1 Message Date
68a9736738 Tests: Re-enable some round-trip tests 2018-01-15 21:07:25 +01:00
6e2e466c27 Tests: Don't rely on the format used for floating-point formatting 2018-01-15 21:07:25 +01:00
107c21a488 Tests: Exponents are formatted with a leading '+' sign 2018-01-15 21:07:25 +01:00
3ae82d91a2 Tests: Floating-point formatting uses lower case 'e' 2018-01-15 21:07:24 +01:00
92f7295063 🔨 cleanup 2018-01-15 13:21:33 +01:00
9d6b3731b9 improved test coverage 2018-01-14 20:07:38 +01:00
f85f4967fe improved test coverage 2018-01-14 17:22:06 +01:00
0e8f01a963 Merge branch 'develop' into feature/rfc7396 2018-01-14 10:28:09 +01:00
1b54d4a5aa Merge branch 'develop' into feature/ubjson 2018-01-14 10:10:56 +01:00
3a7585e738 added more tests 2018-01-10 22:47:07 +01:00
965a70e38d 🔨 optimized output format 2018-01-10 11:22:19 +01:00
fb1154c237 🚧 debug 2018-01-08 21:26:41 +01:00
97e0d20ce9 🚧 debug 2018-01-08 21:16:20 +01:00
ebf28a26ee 🚧 another try 2018-01-08 20:49:02 +01:00
7e4ee23f40 add single_header CMake target 2018-01-08 20:09:43 +01:00
3d7658da89 🚧 working on AppVeyor's errors 2018-01-08 19:48:18 +01:00
126ce2e56c 🚧 further UBJSON 2018-01-08 18:54:17 +01:00
c9938ea838 🚧 started UBJSON implementation 2018-01-07 22:09:12 +01:00
15b6421d07 added UTF-8 decoder capability and stress test
As described in http://www.cl.cam.ac.uk/~mgk25/ucs/examples/UTF-8-test.txt; Markus Kuhn <http://www.cl.cam.ac.uk/~mgk25/> - 2015-08-28 - CC BY 4.0
2018-01-05 23:26:22 +01:00
78f8f837e6 added items() function #874 2018-01-05 18:34:10 +01:00
92484f0caf 🔖 set version to 3.0.1 2017-12-29 18:31:13 +01:00
ebc6849b71 added test for #894 2017-12-29 16:53:04 +01:00
3b3b6e8e69 🚑 fix for #894
- Implemented "copy" in terms of "add".
- Added check for JSON Pointer array indices to make sure the complete reference token was processed.
- Added test suite from https://github.com/json-patch/json-patch-tests
2017-12-28 13:52:23 +01:00
9e3c4ad11f 🔖 set version to 3.0.0 2017-12-17 08:31:18 +01:00
9a51fb4da2 🚨 fixed some warnings 2017-12-16 22:19:30 +01:00
4c871c58f8 re-added tests for algorithms 2017-12-16 11:16:34 +01:00
c6e7eae394 implemented JSON Merge Patch (RFC 7396)
SQLite's json1 extension (https://www.sqlite.org/json1.html) supports JSON Merge Patch (https://tools.ietf.org/html/rfc7396). As the implementation is trivial and we already support JSON Patch, I think this could be a nice extension to the library.
2017-12-13 23:36:22 +01:00
8419bfbbd2 improved test coverage
As we guarantee proper UTF-8 before, we do not need to cope with it later.
2017-12-12 20:44:57 +01:00
569d275f65 💥 throwing an exception in case dump encounters a non-UTF-8 string #838
We had a lot of issues with failing roundtrips (i.e., parse errors from serializations) in case string were stored in the library that were not UTF-8 encoded. This PR adds an exception in this case.
2017-12-11 22:38:05 +01:00
772bb3cc20 📝 fixing documentation #867
The example in the documentation on how to "force" an array of arrays was wrong since the first release. Fixed the documentation and added checks for the README unit tests.
2017-12-10 12:32:20 +01:00
5b4855dea2 fix targetname 2017-11-26 10:29:51 +01:00
430f03512c 🚨 fixed some warnings #821 2017-11-25 22:06:18 +01:00
de75cf89f7 improved test coverage 2017-11-25 19:41:02 +01:00
5696660eba 🔨 another try to fix #714
adding std::ios_base::binary when opening all_unicode.json.cbor
2017-10-31 15:04:14 +01:00
4b46abf97c add forwarding references to json_ref constructor
fixes #805
2017-10-28 14:22:57 +02:00
734e2b73cf 🔨 cleanup 2017-10-27 11:49:24 +02:00
1b1bd0e3e6 #714 is still not fixed 2017-10-23 12:01:50 +02:00
89650c99dd 🚧 checking if #714 is now fixed with MSVC
Hopefully, #764 fixed this.
2017-10-22 11:16:33 +02:00
b0c380b0f8 📝 cleanup after the last PRs 2017-10-22 09:12:35 +02:00
be4fba7baf Merge branch 'develop' of https://github.com/nlohmann/json into develop 2017-10-22 08:53:46 +02:00
24b6e028a9 improved test coverage 2017-10-22 08:53:27 +02:00
ef40673acb Merge branch 'develop' into develop-simplify-istream 2017-10-22 08:52:15 +02:00
a99fcb4e7d Add comments and newline 2017-10-17 22:53:35 -07:00
917d9d8bc3 Fix Visual Studio 2017 warnings 2017-10-16 23:23:55 -07:00
af99090742 Disable warning C4389: '==': signed/unsigned mismatch
Lots of tests have this warning.

Also moved out of for loop, doesn't need to be done every loop.
2017-10-16 01:02:48 -07:00
19f8f1c075 Add missing "u8"
This causes test-udt to crash due to bad iterator
2017-10-16 00:21:38 -07:00
5ec44fe9e3 Add /W4 for MSVS 2017-10-15 22:56:38 -07:00
546e148b24 Further performance improvements, and corrections in get_token_string
o An (-'ve valued, typically -1) EOF must never be allowed in
  token_string, as it be converted to 255 -- a legitimate value.
o Comparing against a specific eof() (-1, typically) is more costly than
  detecting +'ve/-'ve.  Since EOF is the only non-positive value allowed
  we can use the simpler test.
o Removed unnecessary test for token_string size, as it is already
  tested in the method, and must never occur in correct code; used an
  assert instead.
2017-10-05 16:16:41 -07:00
f585fe4eec Test to confirm parsing of multiple JSON records in a istream #367 2017-10-05 16:01:41 -07:00
615366447a 🔧 removing -Weffc++ warnings 2017-10-05 19:43:19 +02:00