Home
last modified time | relevance | path

Searched refs:j_object (Results 1 – 25 of 48) sorted by relevance

12

/third_party/json/docs/examples/
Ddump.cpp9 json j_object = {{"one", 1}, {"two", 2}}; in main() local
15 << j_object.dump() << "\n\n" in main()
16 << j_object.dump(-1) << "\n\n" in main()
17 << j_object.dump(0) << "\n\n" in main()
18 << j_object.dump(4) << "\n\n" in main()
19 << j_object.dump(1, '\t') << "\n\n"; in main()
Dfind__object_t_key_type.cpp9 json j_object = {{"one", 1}, {"two", 2}}; in main() local
12 auto it_two = j_object.find("two"); in main()
13 auto it_three = j_object.find("three"); in main()
17 std::cout << "\"two\" was found: " << (it_two != j_object.end()) << '\n'; in main()
19 std::cout << "\"three\" was found: " << (it_three != j_object.end()) << '\n'; in main()
Dfind__keytype.c++17.cpp11 json j_object = {{"one", 1}, {"two", 2}}; in main() local
14 auto it_two = j_object.find("two"sv); in main()
15 auto it_three = j_object.find("three"sv); in main()
19 std::cout << "\"two\" was found: " << (it_two != j_object.end()) << '\n'; in main()
21 std::cout << "\"three\" was found: " << (it_three != j_object.end()) << '\n'; in main()
Derase__IteratorType_IteratorType.cpp12 json j_object = {{"one", 1}, {"two", 2}}; in main() local
20 j_object.erase(j_object.find("two"), j_object.end()); in main()
28 std::cout << j_object << '\n'; in main()
Derase__object_t_key_type.cpp9 json j_object = {{"one", 1}, {"two", 2}}; in main() local
12 auto count_one = j_object.erase("one"); in main()
13 auto count_three = j_object.erase("three"); in main()
16 std::cout << j_object << '\n'; in main()
Derase__keytype.c++17.cpp11 json j_object = {{"one", 1}, {"two", 2}}; in main() local
14 auto count_one = j_object.erase("one"sv); in main()
15 auto count_three = j_object.erase("three"sv); in main()
18 std::cout << j_object << '\n'; in main()
Doperator_ltlt__basic_json.cpp10 json j_object = {{"one", 1}, {"two", 2}}; in main() local
14 std::cout << j_object << "\n\n"; in main()
18 std::cout << std::setw(4) << j_object << "\n\n"; in main()
20 std::cout << std::setw(1) << std::setfill('\t') << j_object << "\n\n"; in main()
Derase__IteratorType.cpp12 json j_object = {{"one", 1}, {"two", 2}}; in main() local
20 j_object.erase(j_object.find("two")); in main()
28 std::cout << j_object << '\n'; in main()
Dcount__object_t_key_type.cpp9 json j_object = {{"one", 1}, {"two", 2}}; in main() local
12 auto count_two = j_object.count("two"); in main()
13 auto count_three = j_object.count("three"); in main()
Dcount__keytype.c++17.cpp11 json j_object = {{"one", 1}, {"two", 2}}; in main() local
14 auto count_two = j_object.count("two"sv); in main()
15 auto count_three = j_object.count("three"sv); in main()
Dcontains__object_t_key_type.cpp10 json j_object = R"( {"key": "value"} )"_json; in main() local
15 "j_object contains 'key': " << j_object.contains("key") << '\n' << in main()
16 "j_object contains 'another': " << j_object.contains("another") << '\n' << in main()
Dcontains__keytype.c++17.cpp12 json j_object = R"( {"key": "value"} )"_json; in main() local
17 "j_object contains 'key': " << j_object.contains("key"sv) << '\n' << in main()
18 "j_object contains 'another': " << j_object.contains("another"sv) << '\n' << in main()
Dbasic_json__InputIt_InputIt.cpp11 json j_object = {{"one", "eins"}, {"two", "zwei"}}; in main() local
16 json j_object_range(j_object.begin(), j_object.find("two")); in main()
Dclear.cpp13 json j_object = {{"one", 1}, {"two", 2}}; in main() local
22 j_object.clear(); in main()
31 std::cout << j_object << '\n'; in main()
Dtype_name.cpp14 json j_object = {{"one", 1}, {"two", 2}}; in main() local
24 std::cout << j_object << " is an " << j_object.type_name() << '\n'; in main()
Dcontains__keytype.c++17.output1 j_object contains 'key': true
2 j_object contains 'another': false
Dcontains__object_t_key_type.output1 j_object contains 'key': true
2 j_object contains 'another': false
Ditems.cpp9 json j_object = {{"one", 1}, {"two", 2}}; in main() local
13 for (auto& x : j_object.items()) in main()
Dbasic_json__list_init_t.cpp10 json j_object = { {"one", 1}, {"two", 2} }; in main() local
17 std::cout << j_object << '\n'; in main()
Dmax_size.cpp13 json j_object = {{"one", 1}, {"two", 2}}; in main() local
22 std::cout << j_object.max_size() << '\n'; in main()
Dfront.cpp13 json j_object = {{"one", 1}, {"two", 2}}; in main() local
24 std::cout << j_object.front() << '\n'; in main()
Dback.cpp12 json j_object = {{"one", 1}, {"two", 2}}; in main() local
22 std::cout << j_object.back() << '\n'; in main()
/third_party/json/tests/src/
Dunit-algorithms.cpp17 json j_object = {{"one", 1}, {"two", 2}}; variable
27 CHECK(std::all_of(j_object.begin(), j_object.end(), [](const json & value)
39 CHECK(std::any_of(j_object.begin(), j_object.end(), [](const json & value)
51 CHECK(std::none_of(j_object.begin(), j_object.end(), [](const json & value)
120 CHECK(std::equal(j_object.begin(), j_object.end(), j_object.begin()));
121 CHECK(!std::equal(j_array.begin(), j_array.end(), j_object.begin()));
Dunit-iterators2.cpp246 json j_object = {{"one", 1}, {"two", 2}, {"three", 3}}; variable
256 auto it = j_object.begin();
260 auto it = j_object.cbegin();
264 auto it = j_object.begin();
268 auto it = j_object.cbegin();
272 auto it = j_object.begin();
276 auto it = j_object.cbegin();
280 auto it = j_object.begin();
284 auto it = j_object.cbegin();
288 auto it = j_object.begin();
[all …]
/third_party/json/docs/mkdocs/docs/api/basic_json/
Ditems.md14 for (auto it = j_object.begin(); it != j_object.end(); ++it)
23 for (auto it : j_object)
33 for (auto& el : j_object.items())
43 for (auto& [key, val] : j_object.items())

12