Home
last modified time | relevance | path

Searched refs:nlohmann (Results 1 - 25 of 340) sorted by relevance

12345678910>>...14

/third_party/json/include/nlohmann/
H A 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)))
29 -> decltype(::nlohmann
[all...]
H A 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/detai
[all...]
/third_party/json/tests/src/
H A 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::uint64_t, float>;
113 namespace nlohmann namespace
123 } // namespace nlohmann
147 namespace nlohmann namespace
[all...]
H A 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
[all...]
H A 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
[all...]
H A 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_type;
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
[all...]
H A 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
[all...]
H A 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
[all...]
H A Dunit-disabled_exceptions.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>
16 #include <nlohmann/json.hpp>
17 using json = nlohmann::json;
23 class sax_no_exception : public nlohmann::detail::json_sax_dom_parser<json>
26 explicit sax_no_exception(json& j) : nlohmann::detail::json_sax_dom_parser<json>(j, false) {} in sax_no_exception()
H A Dunit-type_traits.cpp4 // |_____|_____|_____|_|___| https://github.com/nlohmann/json
6 // SPDX-FileCopyrightText: 2013-2022 Niels Lohmann <https://nlohmann.me>
12 #include <nlohmann/detail/meta/type_traits.hpp>
14 #include <nlohmann/json.hpp>
21 using nlohmann::detail::is_c_string;
22 using nlohmann::detail::is_c_string_uncvref;
H A Dunit-udt.cpp4 // |_____|_____|_____|_|___| https://github.com/nlohmann/json
6 // SPDX-FileCopyrightText: 2013-2022 Niels Lohmann <https://nlohmann.me>
15 #include <nlohmann/json.hpp>
16 using nlohmann::json;
18 using namespace nlohmann::literals; // NOLINT(google-build-using-namespace)
120 static void to_json(nlohmann::json& j, const address& a) in to_json()
125 static void to_json(nlohmann::json& j, const contact& c) in to_json()
130 static void to_json(nlohmann::json& j, const contact_book& cb) in to_json()
196 // TODO(nlohmann) test exceptions in from_json()
208 static void from_json(const nlohmann
339 namespace nlohmann global() namespace
436 namespace nlohmann global() namespace
469 namespace nlohmann global() namespace
[all...]
H A Dunit-class_parser.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;
15 using namespace nlohmann::literals; // NOLINT(google-build-using-namespace)
131 class SaxCountdown : public nlohmann::json::json_sax_t
213 json::parser(nlohmann::detail::input_adapter(s)).parse(true, j); in parser_helper()
218 CHECK_NOTHROW(json::parser(nlohmann::detail::input_adapter(s), nullptr, false).parse(true, j_nothrow)); in parser_helper()
222 nlohmann::detail::json_sax_dom_parser<json> sdp(j_sax); in parser_helper()
237 CHECK_NOTHROW(json::parser(nlohmann in accept_helper()
[all...]
/third_party/json/docs/examples/
H A 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()
H A Dnlohmann_define_type_non_intrusive_explicit.cpp2 #include <nlohmann/json.hpp>
4 using json = nlohmann::json;
5 using namespace nlohmann::literals;
16 void to_json(nlohmann::json& nlohmann_json_j, const person& nlohmann_json_t) in to_json()
23 void from_json(const nlohmann::json& nlohmann_json_j, person& nlohmann_json_t) in from_json()
H A Dnlohmann_define_type_intrusive_with_default_explicit.cpp2 #include <nlohmann/json.hpp>
4 using json = nlohmann::json;
5 using namespace nlohmann::literals;
22 friend void to_json(nlohmann::json& nlohmann_json_j, const person& nlohmann_json_t) in to_json()
29 friend void from_json(const nlohmann::json& nlohmann_json_j, person& nlohmann_json_t) in from_json()
H A Dnlohmann_define_type_intrusive_explicit.cpp2 #include <nlohmann/json.hpp>
4 using json = nlohmann::json;
5 using namespace nlohmann::literals;
22 friend void to_json(nlohmann::json& nlohmann_json_j, const person& nlohmann_json_t) in to_json()
29 friend void from_json(const nlohmann::json& nlohmann_json_j, person& nlohmann_json_t) in from_json()
H A Dnlohmann_define_type_non_intrusive_with_default_explicit.cpp2 #include <nlohmann/json.hpp>
4 using json = nlohmann::json;
5 using namespace nlohmann::literals;
21 void to_json(nlohmann::json& nlohmann_json_j, const person& nlohmann_json_t) in to_json()
28 void from_json(const nlohmann::json& nlohmann_json_j, person& nlohmann_json_t) in from_json()
H A Doperator_array__json_pointer_const.cpp2 #include <nlohmann/json.hpp>
4 using json = nlohmann::json;
5 using namespace nlohmann::literals;
/third_party/json/include/nlohmann/detail/iterators/
H A 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 decltype()
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 decltype()
212 // And see https://github.com/nlohmann/jso
[all...]
/third_party/json/include/nlohmann/detail/input/
H A Dparser.hpp4 // |_____|_____|_____|_|___| https://github.com/nlohmann/json
6 // SPDX-FileCopyrightText: 2013-2022 Niels Lohmann <https://nlohmann.me>
18 #include <nlohmann/detail/exceptions.hpp>
19 #include <nlohmann/detail/input/input_adapters.hpp>
20 #include <nlohmann/detail/input/json_sax.hpp>
21 #include <nlohmann/detail/input/lexer.hpp>
22 #include <nlohmann/detail/macro_scope.hpp>
23 #include <nlohmann/detail/meta/is_sax.hpp>
24 #include <nlohmann/detail/string_concat.hpp>
25 #include <nlohmann/detai
[all...]
/third_party/json/tests/abi/config/
H A 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/include/nlohmann/detail/
H A 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
[all...]
/third_party/json/
H A DMakefile19 TESTS_SRCS=$(shell find tests -type f \( -name '*.hpp' -o -name '*.cpp' -o -name '*.cu' \) -not -path 'tests/thirdparty/*' -not -path 'tests/abi/include/nlohmann/*' | sort)
22 AMALGAMATED_FILE=single_include/nlohmann/json.hpp
23 AMALGAMATED_FWD_FILE=single_include/nlohmann/json_fwd.hpp
32 @echo "amalgamate - amalgamate files single_include/nlohmann/json{,_fwd}.hpp from the include/nlohmann sources"
184 # check if file single_include/nlohmann/json.hpp has been amalgamated from the nlohmann sources
207 github_changelog_generator -o ChangeLog.md --user nlohmann --project json --simple-list --release-url https://github.com/nlohmann/json/releases/tag/%s --future-release $(NEXT_VERSION)
208 $(SED) -i 's|https://github.com/nlohmann/jso
[all...]
/third_party/json/tests/abi/inline_ns/
H A Duse_v3_10_5.cpp4 // |_____|_____|_____|_|___| https://github.com/nlohmann/json
6 // SPDX-FileCopyrightText: 2013-2022 Niels Lohmann <https://nlohmann.me>
11 #include <nlohmann/json_v3_10_5.hpp>
12 using nlohmann::json;
13 using nlohmann::ordered_json;
/third_party/json/tests/abi/diag/
H A Ddiag_off.cpp4 // |_____|_____|_____|_|___| https://github.com/nlohmann/json
6 // SPDX-FileCopyrightText: 2013-2022 Niels Lohmann <https://nlohmann.me>
11 #include <nlohmann/json.hpp>
17 return sizeof(nlohmann::json); in json_sizeof_diag_off()
27 using nlohmann::json; in json_at_diag_off()

Completed in 10 milliseconds

12345678910>>...14