![]() |
simdjson
0.3.1
Ridiculously Fast JSON
|
JSON object. More...
Classes | |
| class | iterator |
Public Member Functions | |
| really_inline | object () noexcept |
| Create a new, invalid object. | |
| iterator | begin () const noexcept |
| Return the first key/value pair. More... | |
| iterator | end () const noexcept |
| One past the last key/value pair. More... | |
| simdjson_result< element > | operator[] (const std::string_view &key) const noexcept |
| Get the value associated with the given key. More... | |
| simdjson_result< element > | operator[] (const char *key) const noexcept |
| Get the value associated with the given key. More... | |
| simdjson_result< element > | at (const std::string_view &json_pointer) const noexcept |
| Get the value associated with the given JSON pointer. More... | |
| simdjson_result< element > | at_key (const std::string_view &key) const noexcept |
| Get the value associated with the given key. More... | |
| simdjson_result< element > | at_key_case_insensitive (const std::string_view &key) const noexcept |
| Get the value associated with the given key in a case-insensitive manner. More... | |
JSON object.
Definition at line 182 of file document.h.
|
inlinenoexcept |
Get the value associated with the given JSON pointer.
dom::parser parser; object obj = parser.parse(R"({ "foo": { "a": [ 10, 20, 30 ] }})"); obj.at("foo/a/1") == 20 obj.at("foo")["a"].at(1) == 20
Definition at line 616 of file document.h.
|
inlinenoexcept |
Get the value associated with the given key.
The key will be matched against unescaped JSON:
dom::parser parser; parser.parse(R"({ "a
": 1 })")["a\n"].get<uint64_t>().value == 1 parser.parse(R"({ "a
": 1 })")["a\\n"].get<uint64_t>().error == NO_SUCH_FIELD
Definition at line 653 of file document.h.
|
inlinenoexcept |
Get the value associated with the given key in a case-insensitive manner.
Note: The key will be matched against unescaped JSON.
Definition at line 665 of file document.h.
|
inlinenoexcept |
Return the first key/value pair.
Part of the std::iterable interface.
Definition at line 603 of file document.h.
|
inlinenoexcept |
One past the last key/value pair.
Part of the std::iterable interface.
Definition at line 606 of file document.h.
|
inlinenoexcept |
Get the value associated with the given key.
The key will be matched against unescaped JSON:
dom::parser parser; parser.parse(R"({ "a
": 1 })")["a\n"].get<uint64_t>().value == 1 parser.parse(R"({ "a
": 1 })")["a\\n"].get<uint64_t>().error == NO_SUCH_FIELD
Definition at line 613 of file document.h.
|
inlinenoexcept |
Get the value associated with the given key.
The key will be matched against unescaped JSON:
dom::parser parser; parser.parse(R"({ "a
": 1 })")["a\n"].get<uint64_t>().value == 1 parser.parse(R"({ "a
": 1 })")["a\\n"].get<uint64_t>().error == NO_SUCH_FIELD
Definition at line 610 of file document.h.
1.8.17