ark::serialization::JsonObjectIterator
Defined in header “ark/serialization/json_reader.hh”.
Creates a read iterator over the given JSON object.
Methods
-
JsonObjectIterator(const JsonBlob & blob)
Create the object iterator over the root object of the given document. -
std::optional< Pair > next()
Returns the next pair in the object, or an empty optional if no such pair exists. -
std::optional< JsonReadOnlyValue > find_next(const std::string_view & key)
Finds the key with the given name (if it exists) and returns a read only value containing it. The iterator is advanced to the given key.