Niels Lohmann
740c896609
📝 add support section
2021-08-08 08:56:44 +08:00
Niels Lohmann
fdb0f072cd
⚡ avoid string in case of empty objects
2021-08-08 08:56:44 +08:00
Niels Lohmann
3ff25174b2
📝 restructure README
2021-08-08 08:56:44 +08:00
Niels Lohmann
fc0a1381ef
📝 update documentation
2021-08-08 08:56:44 +08:00
Niels Lohmann
1f1b6a700b
✅ add test for JSON_SystemInclude flag
2021-08-08 08:56:44 +08:00
Jean-Philippe Lemieux
8e077ae8f1
Add a cmake option to use SYSTEM in target_include_directories
...
Without SYSTEM static analysis like clang-tidy raise warnings on
json.hpp. This is not desirable for projects embedding nlohmann_json
Tests:
- Validated that without the option OFF the warnings are raised as
before
- Validated that with the option ON the warnings are silenced
2021-08-08 08:56:44 +08:00
Niels Lohmann
95384542b7
👷 fix Codacity badge
2021-08-08 08:56:44 +08:00
Niels Lohmann
d65ee13803
🚨 suppress warning
2021-08-08 08:56:44 +08:00
Niels Lohmann
2668c896c0
🚨 fix format-truncation warning #2572
2021-08-08 08:54:56 +08:00
Niels Lohmann
2d994d9452
🔨 remove noexcept annotation
2021-08-07 21:46:26 +08:00
Niels Lohmann
94e87ff6af
💡 add comment to describe j.m_value.destroy(j.m_type) calls
2021-08-07 21:46:26 +08:00
Niels Lohmann
519dcc5029
🐛 fix leak for all types
2021-08-07 21:46:26 +08:00
Niels Lohmann
3675770d22
🐛 fix leak for strings
2021-08-07 21:46:26 +08:00
Niels Lohmann
88ea375f39
🐛 fix leak for strings
2021-08-07 21:46:26 +08:00
Niels Lohmann
16758b933b
🐛 fix leak for strings
2021-08-07 21:46:26 +08:00
Niels Lohmann
5bbbe5fbfa
🐛 fix leak for strings
2021-08-07 21:46:26 +08:00
Niels Lohmann
e77ae77d7e
♻️ simplify destroy() function for primitive types
2021-08-07 21:46:26 +08:00
Niels Lohmann
97eb6414e4
✅ add regression test
2021-08-07 21:46:25 +08:00
Niels Lohmann
8b643e4362
🚨 fix warnings
2021-08-07 21:46:25 +08:00
Niels Lohmann
45c77b1c72
♻️ move capacity check to set_parent function
2021-08-07 21:46:25 +08:00
Niels Lohmann
44a7dceb04
🔥 remove duplicated line
2021-08-07 21:46:25 +08:00
Niels Lohmann
a5fd035506
🐛 fix logics
2021-08-07 21:46:25 +08:00
Niels Lohmann
714d9f56f8
🐛 fix assertion failure #2838
2021-08-07 21:46:25 +08:00
Rafail Giavrimis
23803e267a
Specified git branch for google benchmark fetch
...
The default branch was renamed from "master" to "main", which breaks the cloning process.
2021-08-07 21:46:25 +08:00
Niels Lohmann
a4c9fa06ec
⚗️ fix coverage
2021-08-07 21:46:25 +08:00
Niels Lohmann
3363fc8aab
🚨 suppress missingReturn warnings
2021-08-07 21:46:25 +08:00
Niels Lohmann
1d7639a6f6
📝 document JSON_NO_IO macro #2842
2021-08-07 21:46:25 +08:00
Niels Lohmann
b475990b00
📝 add comment for handling of negative zeros #2854
2021-08-07 21:46:25 +08:00
David Pfahler
eeb48dd0a7
fixed amalgation file for #2728
2021-08-07 21:46:25 +08:00
David Pfahler
5a499323a2
include io only if JSON_NO_IO is not set for #2728
2021-08-07 21:46:25 +08:00
David Pfahler
378fbda911
fixed amalgation file for #2728
2021-08-07 21:46:25 +08:00
David Pfahler
6c99b750da
Fixes #2728
...
includes some macros to be defined for using without file io.
2021-08-07 21:46:25 +08:00
Niels Lohmann
69de3eb786
📝 fix documentation ( #2845 )
2021-08-07 21:46:25 +08:00
justanotheranonymoususer
44201db12b
Update arbitrary_types.md
2021-08-07 21:46:25 +08:00
justanotheranonymoususer
7ea27324c0
Update README.md
2021-08-07 21:46:25 +08:00
justanotheranonymoususer
a5104d1229
Consistency with using in README.md
2021-08-07 21:46:25 +08:00
Chaoya Li
db0287d2ef
trigger upstream CI
2021-07-21 08:43:45 +08:00
Chaoya Li
98ac25b2ce
Add const to getters for macro tests
2021-06-28 21:02:29 +08:00
Chaoya Li
f452a92c07
Added test for serialization of default constructed object
2021-06-28 18:35:02 +08:00
Chaoya Li
35c37c8ab5
Renamed default_obj in to avoid name clashes
2021-06-28 18:06:46 +08:00
Chaoya Li
d8ba9f43b0
Updated docs for NLOHMANN_DEFINE_TYPE_INTRUSIVE_WITH_DEFAULT and NLOHMANN_DEFINE_TYPE_NON_INTRUSIVE_WITH_DEFAULT
2021-06-28 18:02:14 +08:00
Chaoya Li
5664233fe4
Rephrased docs for NLOHMANN_DEFINE_TYPE_INTRUSIVE_WITH_DEFAULT and NLOHMANN_DEFINE_TYPE_NON_INTRUSIVE_WITH_DEFAULT
2021-06-26 05:57:45 +08:00
Chaoya Li
5a5832e178
Updated docs for NLOHMANN_DEFINE_TYPE_INTRUSIVE_WITH_DEFAULT and NLOHMANN_DEFINE_TYPE_NON_INTRUSIVE_WITH_DEFAULT accordingly
2021-06-25 19:45:01 +08:00
Chaoya Li
7aeda9d433
Reverted changes for NLOHMANN_DEFINE_TYPE_INTRUSIVE and NLOHMANN_DEFINE_TYPE_NON_INTRUSIVE; added new macros NLOHMANN_DEFINE_TYPE_INTRUSIVE_WITH_DEFAULT and NLOHMANN_DEFINE_TYPE_NON_INTRUSIVE_WITH_DEFAULT
2021-06-22 09:00:11 +08:00
Chaoya Li
76f6740e30
Allow default values for NLOHMANN_DEFINE_TYPE_INTRUSIVE and NLOHMANN_DEFINE_TYPE_NON_INTRUSIVE
2021-06-15 10:14:44 +08:00
Niels Lohmann
18a5f4c7ca
Merge pull request #2790 from nlohmann/macos_standards
...
Add C++ standards to macOS matrix
2021-06-14 20:23:21 +02:00
Niels Lohmann
71a514a651
Merge pull request #2770 from jasmcaus/patch-1
...
Keep consistent formatting
2021-06-14 07:18:46 +02:00
Niels Lohmann
fde6e1f800
Merge branch 'develop' of https://github.com/nlohmann/json into macos_standards
2021-06-14 07:17:47 +02:00
Niels Lohmann
95ad4ae071
Merge pull request #2817 from nlohmann/fix_ci
...
Fix CI
2021-06-14 07:16:32 +02:00
Niels Lohmann
802895b483
👷 remove Clang 10
2021-06-13 14:14:10 +02:00