![]() |
simdjson
0.3.1
Ridiculously Fast JSON
|
JSON array. More...
Classes | |
| class | iterator |
Public Member Functions | |
| really_inline | array () noexcept |
| Create a new, invalid array. | |
| iterator | begin () const noexcept |
| Return the first array element. More... | |
| iterator | end () const noexcept |
| One past the last array element. 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 (size_t index) const noexcept |
| Get the value at the given index. More... | |
JSON array.
Definition at line 106 of file document.h.
|
inlinenoexcept |
Get the value associated with the given JSON pointer.
dom::parser parser; array a = parser.parse(R"([ { "foo": { "a": [ 10, 20, 30 ] }} ])"); a.at("0/foo/a/1") == 20 a.at("0")["foo"]["a"].at(1) == 20
Definition at line 546 of file document.h.
|
inlinenoexcept |
Get the value at the given index.
Definition at line 575 of file document.h.
|
inlinenoexcept |
Return the first array element.
Part of the std::iterable interface.
Definition at line 539 of file document.h.
|
inlinenoexcept |
One past the last array element.
Part of the std::iterable interface.
Definition at line 542 of file document.h.
1.8.17