Qianqian Fang
f3ec3be0b2
move OutputIsLittleEndian from tparam to param to replace use_bjdata
2022-04-23 09:00:59 -04:00
Qianqian Fang
35936717c8
fix ci error
2022-04-23 09:00:59 -04:00
Qianqian Fang
2dc8f97ef5
disable [{SHTFNZ in optimized type due to security risks in #2793 and hampered readability
2022-04-23 09:00:59 -04:00
Qianqian Fang
7901839bde
complete test coverage
2022-04-23 09:00:59 -04:00
Qianqian Fang
e7ae719b9a
ndarray can only be used with array containers, discard if used in object
2022-04-23 09:00:59 -04:00
Qianqian Fang
f38a67e3c2
fix sax tests
2022-04-23 09:00:59 -04:00
Qianqian Fang
d4bdedcf13
adjust sax event numbering
2022-04-23 09:00:59 -04:00
Qianqian Fang
a7088b25e6
add additional sax event tests
2022-04-23 09:00:59 -04:00
Qianqian Fang
8c2153c403
add sax test cases for ndarray
2022-04-23 09:00:59 -04:00
Qianqian Fang
09ab236cfe
fix clang tidy error
2022-04-23 09:00:59 -04:00
Qianqian Fang
b54f058dcb
fix a ndarray dim vector condition
2022-04-23 09:00:59 -04:00
Qianqian Fang
5786991973
polish patch to remove ci errors
2022-04-23 09:00:59 -04:00
Qianqian Fang
4c9dd311bd
partially fix ci errors, add tests to improve coverage
2022-04-23 09:00:59 -04:00
Qianqian Fang
069b4d68f1
encode and decode bjdata ndarray in jdata annotations, enable roundtrip tests
2022-04-23 09:00:59 -04:00
Qianqian Fang
be6cdaa4b9
fix ci error, remove unwanted param comment
2022-04-23 09:00:59 -04:00
Qianqian Fang
45a7c365ee
make use_bjdata a non-default parameter
2022-04-23 09:00:59 -04:00
Qianqian Fang
6b9da3bf0a
code polishing following @gregmarr's feedback
2022-04-23 09:00:59 -04:00
Qianqian Fang
ee9e078a5c
amalgamate code
2022-04-23 09:00:12 -04:00
Qianqian Fang
4615c4b7cc
update BJData Spect V1 Draft-2 URL after spec release
2022-04-23 09:00:12 -04:00
Qianqian Fang
8083430a7a
revert order to avoid msvc 2015 unreferenced formal param error
2022-04-23 09:00:12 -04:00
Qianqian Fang
8dd4a61ad6
pass use_bjdata via output adapter
2022-04-23 09:00:12 -04:00
Qianqian Fang
7589b604aa
move is_bjdata to an optional param to write_ubjson
2022-04-23 09:00:12 -04:00
Qianqian Fang
53855c14d4
remove the unwanted assert
2022-04-23 09:00:12 -04:00
Qianqian Fang
29c7a4365f
make is_bjdata const after using initializer list
2022-04-23 09:00:12 -04:00
Qianqian Fang
d5e590efe3
fix ci errors, add tests for new bjdata switch structure
2022-04-23 09:00:12 -04:00
Qianqian Fang
ed8c4c681d
move bjdata new markers from default to the same level as ubjson markers
2022-04-23 09:00:12 -04:00
Qianqian Fang
e9d0f420bc
full coverage, I hope
2022-04-23 09:00:12 -04:00
Qianqian Fang
122e9fc7e8
remove broken test due to alloc limit
2022-04-23 09:00:12 -04:00
Qianqian Fang
408144ae73
simplify endian condition, format unit-bjdata
2022-04-23 08:59:47 -04:00
Qianqian Fang
9e723360c7
fix No newline at end of file error by clang
2022-04-23 08:59:47 -04:00
Qianqian Fang
5a485d56a3
add half precision error test
2022-04-23 08:59:47 -04:00
Qianqian Fang
3d211b883d
complete test coverage, fix ci_test errors
2022-04-23 08:59:47 -04:00
Qianqian Fang
6fc779005c
fix ci_test errors
2022-04-23 08:59:47 -04:00
Qianqian Fang
42701cc2fc
gcc warn useless conversion but msvc gives an error
2022-04-23 08:59:29 -04:00
Qianqian Fang
c8752b349f
add tests for optimized ndarray, improve coverage, fix clang/gcc warnings
2022-04-23 08:59:29 -04:00
Qianqian Fang
55682ffb5a
add more tests to cover the new bjdata types
2022-04-23 08:59:29 -04:00
Qianqian Fang
4985323bb7
fix additional warnings and errors for clang and msvc
2022-04-23 08:59:29 -04:00
Qianqian Fang
76ee885fd2
fix more VS compilation errors
2022-04-23 08:59:14 -04:00
Qianqian Fang
58efde83f0
fix additional VS errors
2022-04-23 08:59:14 -04:00
Qianqian Fang
94b0268cc2
partially fix VS compilation errors
2022-04-23 08:59:14 -04:00
Qianqian Fang
02d8f926f0
fix Codacy warning
2022-04-23 08:59:14 -04:00
Qianqian Fang
3c820dd215
support UBJSON-derived Binary JData (BJData) format
2022-04-23 08:59:14 -04:00
Florian Albrechtskirchinger
1a90c9463a
Disable regression test for #3070 on GCC <8.4 ( #3451 )
2022-04-22 14:21:16 +02:00
JungHoon Lee
a94430615d
Fix typo in basic_json documentation ( #3439 )
2022-04-12 15:58:06 +02:00
Florian Albrechtskirchinger
616caea27a
Re-template json_pointer on string type ( #3415 )
...
* Make exception context optional
Change exception context parameter to pointer and replace context with
nullptr where appropriate.
* Support escaping other string types
* Add string concatenation function
Add variadic concat() function for concatenating char *, char, and
string types.
* Replace string concatenations using + with concat()
* Template json_pointer on string type
Change json_pointer from being templated on basic_json to being
templated on string type.
* Add unit test for #3388
Closes #3388 .
* Fix regression test for #2958
* Add backwards compatibility with json_pointer<basic_json>
* Update json_pointer docs
* Allow comparing different json_pointers
* Update version numbers
2022-04-12 14:18:16 +02:00
Florian Albrechtskirchinger
1deeb434c6
Exclude std::any from implicit conversion ( fixes #3428 ) ( #3437 )
...
* Exclude std::any from implicit conversion
Fixes #3428 (MSVC) and silences compiler warning on GCC (-Wconversion).
* Exclude std::any from implicit conversion
2022-04-12 14:08:20 +02:00
Niels Lohmann
10344907ff
📝 document which version introduced the macros #3429 ( #3431 )
2022-04-09 18:09:23 +02:00
Florian Albrechtskirchinger
261cc4e509
Fix constraints on from_json() for strings ( #3427 )
...
Constrain from_json() overload for StringType to not accept json_ref and
require it to be assignable, instead of constructible, from
basic_json::string_t.
Re-enable C++14 tests on Clang <4.0.
Fixes #3171 .
Fixes #3267 .
Fixes #3312 .
Fixes #3384 .
2022-04-08 10:22:47 +02:00
Michael Nosthoff
15fa6a342a
at.md: fix typo ( #3426 )
2022-04-06 15:26:35 +02:00
Niels Lohmann
448b173ccf
Update CI image ( #3420 )
...
* ⬆️ use new CI image
* ⬆️ use new CI image
* 🚨 suppress Clang-Tidy warnings
* 💚 use proper scan-build version
* 🚨 suppress Clang-Tidy warnings
* ⬆️ use more recent GitHub actions
* 💚 add missing compiler
* 📝 update used compilers
* 🚨 fix duplicate inclusion
2022-04-06 15:14:14 +02:00