Home
last modified time | relevance | path

Searched full:nlohmann (Results 1 – 25 of 594) sorted by relevance

12345678910>>...24

/third_party/json/
DChangeLog.md4 ## [3.11.2](https://github.com/nlohmann/json/releases/tag/3.11.2) (2022-08-12)
6 [Full Changelog](https://github.com/nlohmann/json/compare/v3.11.1...3.11.2)
8 …k after introduction of inline ABI namespace [\#3696](https://github.com/nlohmann/json/issues/3696)
9 … gives compilation errors in some situations [\#3682](https://github.com/nlohmann/json/issues/3682)
10 - extern from/to\_json result in linker error [\#3657](https://github.com/nlohmann/json/issues/3657)
11 - json\_fwd.hpp no longer standalone [\#3656](https://github.com/nlohmann/json/issues/3656)
12 - regression: `.value<size_t>` is compilation error. [\#3655](https://github.com/nlohmann/json/issu…
13 …ng json\_pointer and const char \*/string\_t [\#3654](https://github.com/nlohmann/json/issues/3654)
14 - Regression: call to member function 'value' is ambiguous [\#3652](https://github.com/nlohmann/jso…
15 - macOS 10.15 Actions runner image deprecation [\#3612](https://github.com/nlohmann/json/issues/361…
[all …]
Dnlohmann_json.natvis6 <!-- Namespace nlohmann -->
7 <Type Name="nlohmann::basic_json&lt;*&gt;">
8 <DisplayString Condition="m_type == nlohmann::detail::value_t::null">null</DisplayString>
9 …<DisplayString Condition="m_type == nlohmann::detail::value_t::object">{*(m_value.object)}</Displa…
10 …<DisplayString Condition="m_type == nlohmann::detail::value_t::array">{*(m_value.array)}</DisplayS…
11 …<DisplayString Condition="m_type == nlohmann::detail::value_t::string">{*(m_value.string)}</Displa…
12 …<DisplayString Condition="m_type == nlohmann::detail::value_t::boolean">{m_value.boolean}</Display…
13 …<DisplayString Condition="m_type == nlohmann::detail::value_t::number_integer">{m_value.number_int…
14 …<DisplayString Condition="m_type == nlohmann::detail::value_t::number_unsigned">{m_value.number_un…
15 …<DisplayString Condition="m_type == nlohmann::detail::value_t::number_float">{m_value.number_float…
[all …]
DREADME.md1 [![JSON for Modern C++](docs/json.gif)](https://github.com/nlohmann/json/releases)
3 …ts/status/1acb366xfyg3qybk/branch/develop?svg=true)](https://ci.appveyor.com/project/nlohmann/json)
4 [![Ubuntu](https://github.com/nlohmann/json/workflows/Ubuntu/badge.svg)](https://github.com/nlohman…
5 [![macOS](https://github.com/nlohmann/json/workflows/macOS/badge.svg)](https://github.com/nlohmann/…
6 [![Windows](https://github.com/nlohmann/json/workflows/Windows/badge.svg)](https://github.com/nlohm…
7 …us](https://coveralls.io/repos/github/nlohmann/json/badge.svg?branch=develop)](https://coveralls.i…
8 …tps://scan.coverity.com/projects/5550/badge.svg)](https://scan.coverity.com/projects/nlohmann-json)
9 …)](https://www.codacy.com/gh/nlohmann/json/dashboard?utm_source=github.com&amp;utm_medium=referral…
10 …ps://img.shields.io/lgtm/grade/cpp/g/nlohmann/json.svg?logo=lgtm&logoWidth=18)](https://lgtm.com/p…
13 [![Documentation](https://img.shields.io/badge/docs-mkdocs-blue.svg)](https://json.nlohmann.me)
[all …]
Dwsjcpp.yml4 name: "nlohmann/json"
7 issues: "https://github.com/nlohmann/json/issues"
14 url: "https://github.com/nlohmann/json"
18 email: "mail@nlohmann.me"
21 - source-file: "single_include/nlohmann/json.hpp"
24 - source-file: "single_include/nlohmann/json_fwd.hpp"
/third_party/json/docs/mkdocs/docs/integration/
Dpackage_managers.md20 brew install nlohmann-json
26 brew install nlohmann-json --HEAD
29 instead. See [nlohmann-json](https://formulae.brew.sh/formula/nlohmann-json) for more information.
42 brew install nlohmann-json
45 …3. Determine the include path, which defaults to `/usr/local/Cellar/nlohmann-json/$version/include…
48 brew list nlohmann-json
54 clang++ example.cpp -I/usr/local/Cellar/nlohmann-json/3.7.3/include -std=c++11 -o example
57 :material-update: The [formula](https://formulae.brew.sh/formula/nlohmann-json) is updated automati…
61 …`include.zip` published in this project's [Releases](https://github.com/nlohmann/json/releases) to…
99 …dependencies, you can use the [`nlohmann-json` package](https://spack.readthedocs.io/en/latest/pac…
[all …]
Dindex.md3 [`json.hpp`](https://github.com/nlohmann/json/blob/develop/single_include/nlohmann/json.hpp) is the…
4 file in `single_include/nlohmann` or [released here](https://github.com/nlohmann/json/releases). Yo…
7 #include <nlohmann/json.hpp>
10 using json = nlohmann::json;
17 [`single_include/nlohmann/json_fwd.hpp`](https://github.com/nlohmann/json/blob/develop/single_inclu…
/third_party/json/docs/mkdocs/docs/home/
Dreleases.md7 - [include.zip](https://github.com/nlohmann/json/releases/download/v3.7.3/include.zip) (274 KB)
8 …- [include.zip.asc](https://github.com/nlohmann/json/releases/download/v3.7.3/include.zip.asc) (1 …
9 - [json.hpp](https://github.com/nlohmann/json/releases/download/v3.7.3/json.hpp) (791 KB)
10 - [json.hpp.asc](https://github.com/nlohmann/json/releases/download/v3.7.3/json.hpp.asc) (1 KB)
27nlohmann.github.io/json/doxygen/classnlohmann_1_1basic__json_af1592a06bc63811886ade4f9d965045e.htm…
28nlohmann.github.io/json/doxygen/classnlohmann_1_1basic__json_ab7285a92514fcdbe6de505ebaba92ea3.htm…
35 - [include.zip](https://github.com/nlohmann/json/releases/download/v3.7.2/include.zip) (274 KB)
36 …- [include.zip.asc](https://github.com/nlohmann/json/releases/download/v3.7.2/include.zip.asc) (1 …
37 - [json.hpp](https://github.com/nlohmann/json/releases/download/v3.7.2/json.hpp) (791 KB)
38 - [json.hpp.asc](https://github.com/nlohmann/json/releases/download/v3.7.2/json.hpp.asc) (1 KB)
[all …]
/third_party/json/include/nlohmann/
Dadl_serializer.hpp4 // |_____|_____|_____|_|___| https://github.com/nlohmann/json
6 // SPDX-FileCopyrightText: 2013-2022 Niels Lohmann <https://nlohmann.me>
13 #include <nlohmann/detail/abi_macros.hpp>
14 #include <nlohmann/detail/conversions/from_json.hpp>
15 #include <nlohmann/detail/conversions/to_json.hpp>
16 #include <nlohmann/detail/meta/identity_tag.hpp>
20 /// @sa https://json.nlohmann.me/api/adl_serializer/
25 /// @sa https://json.nlohmann.me/api/adl_serializer/from_json/
28 noexcept(::nlohmann::from_json(std::forward<BasicJsonType>(j), val))) in from_json()
29 -> decltype(::nlohmann::from_json(std::forward<BasicJsonType>(j), val), void()) in from_json()
[all …]
Djson.hpp4 // |_____|_____|_____|_|___| https://github.com/nlohmann/json
6 // SPDX-FileCopyrightText: 2013-2022 Niels Lohmann <https://nlohmann.me>
11 * documentation of the public API at https://json.nlohmann.me. This URL *
35 #include <nlohmann/adl_serializer.hpp>
36 #include <nlohmann/byte_container_with_subtype.hpp>
37 #include <nlohmann/detail/conversions/from_json.hpp>
38 #include <nlohmann/detail/conversions/to_json.hpp>
39 #include <nlohmann/detail/exceptions.hpp>
40 #include <nlohmann/detail/hash.hpp>
41 #include <nlohmann/detail/input/binary_reader.hpp>
[all …]
Dbyte_container_with_subtype.hpp4 // |_____|_____|_____|_|___| https://github.com/nlohmann/json
6 // SPDX-FileCopyrightText: 2013-2022 Niels Lohmann <https://nlohmann.me>
15 #include <nlohmann/detail/abi_macros.hpp>
20 /// @sa https://json.nlohmann.me/api/byte_container_with_subtype/
28 /// @sa https://json.nlohmann.me/api/byte_container_with_subtype/byte_container_with_subtype/
33 /// @sa https://json.nlohmann.me/api/byte_container_with_subtype/byte_container_with_subtype/
38 /// @sa https://json.nlohmann.me/api/byte_container_with_subtype/byte_container_with_subtype/
43 /// @sa https://json.nlohmann.me/api/byte_container_with_subtype/byte_container_with_subtype/
50 /// @sa https://json.nlohmann.me/api/byte_container_with_subtype/byte_container_with_subtype/
69 /// @sa https://json.nlohmann.me/api/byte_container_with_subtype/set_subtype/
[all …]
Djson_fwd.hpp4 // |_____|_____|_____|_|___| https://github.com/nlohmann/json
6 // SPDX-FileCopyrightText: 2013-2022 Niels Lohmann <https://nlohmann.me>
18 #include <nlohmann/detail/abi_macros.hpp>
22 @see https://github.com/nlohmann
38 /// @sa https://json.nlohmann.me/api/basic_json/
53 /// @sa https://json.nlohmann.me/api/json_pointer/
59 @sa https://json.nlohmann.me/api/json/
64 /// @sa https://json.nlohmann.me/api/ordered_map/
69 /// @sa https://json.nlohmann.me/api/ordered_json/
70 using ordered_json = basic_json<nlohmann::ordered_map>;
/third_party/json/tests/src/
Dunit-udl.cpp4 // |_____|_____|_____|_|___| https://github.com/nlohmann/json
6 // SPDX-FileCopyrightText: 2013-2022 Niels Lohmann <https://nlohmann.me>
11 #include <nlohmann/json.hpp>
15 auto j_expected = nlohmann::json::parse(R"({"foo": "bar", "baz": 42})");
16 auto ptr_expected = nlohmann::json::json_pointer("/foo/bar");
18 SECTION("using namespace nlohmann::literals::json_literals")
20 using namespace nlohmann::literals::json_literals; // NOLINT(google-build-using-namespace)
26 SECTION("using namespace nlohmann::json_literals")
28 using namespace nlohmann::json_literals; // NOLINT(google-build-using-namespace)
34 SECTION("using namespace nlohmann::literals")
[all …]
Dunit-byte_container_with_subtype.cpp4 // |_____|_____|_____|_|___| https://github.com/nlohmann/json
6 // Copyright (c) 2013-2022 Niels Lohmann <http://nlohmann.me>.
7 // SPDX-FileCopyrightText: 2013-2022 Niels Lohmann <https://nlohmann.me>
12 #include <nlohmann/json.hpp>
13 using nlohmann::json;
17 …using subtype_type = nlohmann::byte_container_with_subtype<std::vector<std::uint8_t>>::subtype_typ…
21 nlohmann::byte_container_with_subtype<std::vector<std::uint8_t>> container;
37 nlohmann::byte_container_with_subtype<std::vector<std::uint8_t>> container({}, 42);
49 nlohmann::byte_container_with_subtype<std::vector<std::uint8_t>> container1;
50 nlohmann::byte_container_with_subtype<std::vector<std::uint8_t>> container2({}, 42);
[all …]
Dunit-udt_macro.cpp4 // |_____|_____|_____|_|___| https://github.com/nlohmann/json
6 // SPDX-FileCopyrightText: 2013-2022 Niels Lohmann <https://nlohmann.me>
13 #include <nlohmann/json.hpp>
14 using nlohmann::json;
352 nlohmann::json j = obj1; //via json object
361 nlohmann::json j1 = obj1; //via json string
363 nlohmann::json j2 = nlohmann::json::parse(s);
372 nlohmann::json j1 = obj1; //via msgpack
373 std::vector<uint8_t> buf = nlohmann::json::to_msgpack(j1);
374 nlohmann::json j2 = nlohmann::json::from_msgpack(buf);
[all …]
Dunit-noexcept.cpp4 // |_____|_____|_____|_|___| https://github.com/nlohmann/json
6 // SPDX-FileCopyrightText: 2013-2022 Niels Lohmann <https://nlohmann.me>
15 #include <nlohmann/json.hpp>
17 using nlohmann::json;
40 static_assert(noexcept(nlohmann::to_json(*j, 2)), "");
41 static_assert(noexcept(nlohmann::to_json(*j, 2.5)), "");
42 static_assert(noexcept(nlohmann::to_json(*j, true)), "");
43 static_assert(noexcept(nlohmann::to_json(*j, test{})), "");
44 static_assert(noexcept(nlohmann::to_json(*j, pod{})), "");
45 static_assert(!noexcept(nlohmann::to_json(*j, pod_bis{})), "");
[all …]
Dunit-class_iterator.cpp4 // |_____|_____|_____|_|___| https://github.com/nlohmann/json
6 // SPDX-FileCopyrightText: 2013-2022 Niels Lohmann <https://nlohmann.me>
12 #include <nlohmann/json.hpp>
13 using nlohmann::json;
389 using Iter = nlohmann::detail::primitive_iterator_t;
394 using Iter = nlohmann::detail::iter_impl<json>;
399 using Base = nlohmann::detail::iter_impl<json>;
400 using Iter = nlohmann::detail::json_reverse_iterator<Base>;
408 using Iter = nlohmann::detail::primitive_iterator_t;
413 using Iter = nlohmann::detail::iter_impl<json>;
[all …]
Dunit-regression2.cpp4 // |_____|_____|_____|_|___| https://github.com/nlohmann/json
6 // SPDX-FileCopyrightText: 2013-2022 Niels Lohmann <https://nlohmann.me>
22 #include <nlohmann/json.hpp>
23 using json = nlohmann::json;
24 using ordered_json = nlohmann::ordered_json;
26 using namespace nlohmann::literals; // NOLINT(google-build-using-namespace)
51 using float_json = nlohmann::basic_json<std::map, std::vector, std::string, bool, std::int64_t, std…
113 namespace nlohmann namespace
123 } // namespace nlohmann
147 namespace nlohmann namespace
[all …]
/third_party/json/docs/mkdocs/docs/features/
Dobject_order.md7 The default type `nlohmann::json` uses a `std::map` to store JSON objects, and thus stores object k…
15 using json = nlohmann::json;
40 …e the **insertion order**, you can try the type [`nlohmann::ordered_json`](https://github.com/nloh…
54nlohmann/json/issues/546#issuecomment-304447518)) or [`nlohmann::fifo_map`](https://github.com/nlo…
71 The following code correctly calls the `parse` function from `nlohmann::ordered_json`:
75 auto j = nlohmann::ordered_json::parse(i);
91 …The following code incorrectly calls the `parse` function from `nlohmann::json` which does not pre…
92 …insertion order, but sorts object keys. Assigning the result to `nlohmann::ordered_json` compiles,…
97 nlohmann::ordered_json j = nlohmann::json::parse(i);
/third_party/json/single_include/nlohmann/
Djson_fwd.hpp4 // |_____|_____|_____|_|___| https://github.com/nlohmann/json
6 // SPDX-FileCopyrightText: 2013-2022 Niels Lohmann <https://nlohmann.me>
18 // #include <nlohmann/detail/abi_macros.hpp>
22 // |_____|_____|_____|_|___| https://github.com/nlohmann/json
24 // SPDX-FileCopyrightText: 2013-2022 Niels Lohmann <https://nlohmann.me>
99 nlohmann::NLOHMANN_JSON_NAMESPACE_CONCAT( \
106 namespace nlohmann \
117 } // namespace nlohmann
123 @see https://github.com/nlohmann
139 /// @sa https://json.nlohmann.me/api/basic_json/
[all …]
/third_party/json/include/nlohmann/detail/iterators/
Diteration_proxy.hpp4 // |_____|_____|_____|_|___| https://github.com/nlohmann/json
6 // SPDX-FileCopyrightText: 2013-2022 Niels Lohmann <https://nlohmann.me>
21 #include <nlohmann/detail/abi_macros.hpp>
22 #include <nlohmann/detail/meta/type_traits.hpp>
23 #include <nlohmann/detail/value_t.hpp>
191 // And see https://github.com/nlohmann/json/pull/1391
193 auto get(const nlohmann::detail::iteration_proxy_value<IteratorType>& i) -> decltype(i.key()) in get()
199 // And see https://github.com/nlohmann/json/pull/1391
201 auto get(const nlohmann::detail::iteration_proxy_value<IteratorType>& i) -> decltype(i.value()) in get()
212 // And see https://github.com/nlohmann/json/pull/1391
[all …]
/third_party/json/tests/abi/config/
Dcustom.cpp4 // |_____|_____|_____|_|___| https://github.com/nlohmann/json
6 // SPDX-FileCopyrightText: 2013-2022 Niels Lohmann <https://nlohmann.me>
14 #define NLOHMANN_JSON_NAMESPACE nlohmann // this line may be omitted
15 #define NLOHMANN_JSON_NAMESPACE_BEGIN namespace nlohmann {
17 #include <nlohmann/json_fwd.hpp>
25 std::string expected = "nlohmann::basic_json";
30 CHECK(namespace_name<nlohmann::json>(ns) == expected);
/third_party/json/docs/mkdocs/docs/api/
Doperator_literal_json.md1 # <small>nlohmann::</small>operator""_json
12 using nlohmann::literals::operator "" _json;
13 using namespace nlohmann::literals;
14 using namespace nlohmann::json_literals;
15 using namespace nlohmann::literals::json_literals;
16 using namespace nlohmann;
61 - Moved to namespace `nlohmann::literals::json_literals` in 3.11.0.
Doperator_literal_json_pointer.md1 # <small>nlohmann::</small>operator""_json_pointer
12 using nlohmann::literals::operator "" _json_pointer;
13 using namespace nlohmann::literals;
14 using namespace nlohmann::json_literals;
15 using namespace nlohmann::literals::json_literals;
16 using namespace nlohmann;
64 - Moved to namespace `nlohmann::literals::json_literals` in 3.11.0.
/third_party/json/include/nlohmann/detail/
Dexceptions.hpp4 // |_____|_____|_____|_|___| https://github.com/nlohmann/json
6 // SPDX-FileCopyrightText: 2013-2022 Niels Lohmann <https://nlohmann.me>
17 #include <nlohmann/detail/value_t.hpp>
18 #include <nlohmann/detail/string_escape.hpp>
19 #include <nlohmann/detail/input/position_t.hpp>
20 #include <nlohmann/detail/macro_scope.hpp>
21 #include <nlohmann/detail/meta/cpp_future.hpp>
22 #include <nlohmann/detail/meta/type_traits.hpp>
23 #include <nlohmann/detail/string_concat.hpp>
35 /// @sa https://json.nlohmann.me/api/basic_json/exception/
[all …]
/third_party/json/docs/examples/
Doperator__equal__specializations.cpp3 #include <nlohmann/json.hpp>
5 using json = nlohmann::json;
9 nlohmann::json uj1 = {{"version", 1}, {"type", "integer"}}; in main()
10 nlohmann::json uj2 = {{"type", "integer"}, {"version", 1}}; in main()
12 nlohmann::ordered_json oj1 = {{"version", 1}, {"type", "integer"}}; in main()
13 nlohmann::ordered_json oj2 = {{"type", "integer"}, {"version", 1}}; in main()

12345678910>>...24