trdesilva
a0a4e7cc0b
Add front methods to json_pointers (implements #4889 ) ( #5152 )
...
* Added front, pop_front, and push_front methods to json_pointers in order to facilitate root-to-leaf traversals of JSON object trees. (#4889 )
Signed-off-by: trdesilva <5818730+trdesilva@users.noreply.github.com >
* undid VS autoformatting in irrelevant code
Signed-off-by: trdesilva <5818730+trdesilva@users.noreply.github.com >
* Ran make amalgamate, added navigation to json_pointer's new front methods in mkdocs, and fixed errors in documented complexity for those methods.
Signed-off-by: trdesilva <5818730+trdesilva@users.noreply.github.com >
* Fixed GCC 4.8 compile error caused by const iterators
Signed-off-by: trdesilva <5818730+trdesilva@users.noreply.github.com >
* Fixed another gcc-4.8 compile error
Signed-off-by: trdesilva <5818730+trdesilva@users.noreply.github.com >
* amalgamated
Signed-off-by: trdesilva <5818730+trdesilva@users.noreply.github.com >
---------
Signed-off-by: trdesilva <5818730+trdesilva@users.noreply.github.com >
2026-05-13 07:59:16 +02:00
Niels Lohmann
515d994acb
📄 adjust year ( #5044 )
...
Signed-off-by: Niels Lohmann <mail@nlohmann.me >
2026-01-01 20:00:39 +01:00
DmitriBogdanov
3ed64e502a
docs: Fix broken package manager links in the integration tab. ( #4934 )
...
Signed-off-by: DmitriBogdanov <dm.bogdanov2000@gmail.com >
2025-09-28 20:12:48 +02:00
Miko
b7f741165b
Add proper C++20 module support ( #4799 )
2025-06-29 22:02:31 +02:00
chirsz
4b17f90f65
Add ignore_trailing_commas option ( #4609 )
...
Added examples and modified the corresponding documents and unit tests.
Signed-off-by: chirsz-ever <chirsz-ever@outlook.com >
Co-authored-by: Niels Lohmann <niels.lohmann@gmail.com >
2025-05-22 08:01:46 +02:00
Niels Lohmann
26cfec34be
Clean up and document project files ( #4560 )
2025-01-17 06:53:35 +01:00
Nikhil
60c48755e3
Add missing macros in README and link to docs for more info ( #4582 )
...
* Add nav items for serialize macros
Signed-off-by: Nikhil <nikhilreddydev@gmail.com >
* match order of non-intrusive macros to intrusive macros
Signed-off-by: Nikhil <nikhilreddydev@gmail.com >
* Add missing macros and link for more info
Signed-off-by: Nikhil <nikhilreddydev@gmail.com >
* Add @brief macro tags
Signed-off-by: Nikhil <nikhilreddydev@gmail.com >
* make amalgamate
Signed-off-by: Nikhil <nikhilreddydev@gmail.com >
* Add since version tags
Signed-off-by: Nikhil <nikhilreddydev@gmail.com >
* Revert "Add missing macros and link for more info"
This reverts commit 4c9b3ae9bf7a25c81dc1c6217a72a30a39086979.
Signed-off-by: Nikhil <nikhilreddydev@gmail.com >
---------
Signed-off-by: Nikhil <nikhilreddydev@gmail.com >
2025-01-03 22:19:37 +01:00
Einars Netlis-Galejs
af4ad7915c
Add ONLY_SERIALIZE for NLOHMANN_DEFINE_DERIVED_TYPE_* macros ( #4562 )
2024-12-20 11:31:22 +01:00
Niels Lohmann
549c79ba7e
Overwork documentation ( #4516 )
2024-12-09 23:02:30 +01:00
Niels Lohmann
0261bc04d3
Fix CI (again) ( #4196 )
2023-11-01 21:23:55 +01:00
Niels Lohmann
885aa0014e
Add migration guide ( #3887 )
2022-12-18 17:04:23 +01:00
Florian Albrechtskirchinger
15ca78a886
Add dark mode toggle to documentation ( #3726 )
2022-09-15 22:02:54 +02:00
Raphael Grimm
bed648ca55
Allow custom base class as node customization point ( #3110 )
...
Co-authored-by: Niels Lohmann <niels.lohmann@gmail.com >
Co-authored-by: Florian Albrechtskirchinger <falbrechtskirchinger@gmail.com >
Co-authored-by: barcode <barcode@example.com >
2022-08-28 13:59:07 +02:00
Florian Albrechtskirchinger
0e61ee8b07
Restructure inline namespace and allow version component to be disabled ( #3683 )
2022-08-10 20:24:16 +02:00
Florian Albrechtskirchinger
9e1a7c85e3
Add json_pointer/string_t equality comparison operators ( #3664 )
2022-08-05 14:08:27 +02:00
Florian Albrechtskirchinger
9aafcbe965
Move UDLs out of the global namespace ( #3605 )
...
* Move UDLs into nlohmann::literals::json_literals namespace
* Add 'using namespace' to unit tests
* Add 'using namespace' to examples
* Add 'using namespace' to README
* Move UDL mkdocs pages out of basic_json/
* Update documentation
* Update docset index
* Add JSON_GlobalUDLs CMake option
* Add unit test
* Build examples without global UDLs
* Add CI target
2022-07-31 17:38:52 +02:00
Florian Albrechtskirchinger
d909f80960
Add versioned, ABI-tagged inline namespace and namespace macros ( #3590 )
...
* Add versioned inline namespace
Add a versioned inline namespace to prevent ABI issues when linking code
using multiple library versions.
* Add namespace macros
* Encode ABI information in inline namespace
Add _diag suffix to inline namespace if JSON_DIAGNOSTICS is enabled, and
_ldvcmp suffix if JSON_USE_LEGACY_DISCARDED_VALUE_COMPARISON is enabled.
* Move ABI-affecting macros into abi_macros.hpp
* Move std_fs namespace definition into std_fs.hpp
* Remove std_fs namespace from unit test
* Format more files in tests directory
* Add unit tests
* Update documentation
* Fix GDB pretty printer
* fixup! Add namespace macros
* Derive ABI prefix from NLOHMANN_JSON_VERSION_*
2022-07-30 21:59:13 +02:00
Florian Albrechtskirchinger
e3095f636f
Add operator<<(json_pointer) ( #3601 )
...
* Add operator<< for json_pointer
* Deprecate json_pointer::operator string_t()
* Update documentation
* Move operator<<(basic_json) example
* Add example
* Add mkdocs-redirects
* Move operator<< and operator>> doc pages out of basic_json/
* Rename JSON pointer operator_string to operator_string_t
* Add unit test
2022-07-28 22:12:23 +02:00
Niels Lohmann
b185c5bc9d
📝 clean up after #3581 ( #3596 )
2022-07-22 15:35:29 +02:00
Richard Hozák
f6acdbec2c
Allow disabling default enum conversions ( #3536 )
2022-06-16 19:34:32 +02:00
Florian Albrechtskirchinger
6b97599a27
Fix C++20/gcc-12 issues (Part 2) ( #3446 )
...
* Add C++20 3-way comparison operator and fix broken comparisons
Fixes #3207 .
Fixes #3409 .
* Fix iterators to meet (more) std::ranges requirements
Fixes #3130 .
Related discussion: #3408
* Add note about CMake standard version selection to unit tests
Document how CMake chooses which C++ standard version to use when
building tests.
* Update documentation
* CI: add legacy discarded value comparison
* Fix internal linkage errors when building a module
2022-05-29 13:08:06 +02:00
Niels Lohmann
6a7392058e
Complete documentation for 3.11.0 ( #3464 )
...
* 👥 update contributor and sponsor list
* 🚧 document BJData format
* 🚧 document BJData format
* 📝 clarified documentation of [json.exception.parse_error.112]
* ✏️ adjust titles
* 📝 add more examples
* 🚨 adjust warnings for index.md files
* 📝 add more examples
* 🔥 remove example for deprecated code
* 📝 add missing enum entry
* 📝 overwork table for binary formats
* ✅ add test to create table for binary formats
* 📝 fix wording in example
* 📝 add more examples
* Update iterators.md (#3481 )
* ✨ add check for overloads to linter #3455
* 👥 update contributor list
* 📝 add more examples
* 📝 fix documentation
* 📝 add more examples
* 🎨 fix indentation
* 🔥 remove example for destructor
* 📝 overwork documentation
* Updated BJData documentation, #3464 (#3493 )
* update bjdata.md for #3464
* Minor edit
* Fix URL typo
* Add info on demoting ND array to a 1-D optimized array when singleton dimension
Co-authored-by: Chaoqi Zhang <prncoprs@163.com >
Co-authored-by: Qianqian Fang <fangqq@gmail.com >
2022-05-17 13:08:56 +02:00
Niels Lohmann
b21c345179
Reorganize directories ( #3462 )
...
* 🚚 move files
* 🚚 rename doc folder to docs
* 🚚 rename test folder to tests
2022-05-01 09:41:50 +02:00