|
GREM 3.12.0
Game/Rendering Engine Modules for C++
|
Stateful wrapper object of an input stream for JSON deserialization. More...
#include <GREM/core/formats/json.hpp>
Public Types | |
| using | Token = typename Parser<It>::Token |
| Token type of the reader's parser. | |
Public Member Functions | |
| Reader (std::istream &stream, const SourceLocation &source={}, const DeserializationOptions &options={}) | |
| Construct a reader with an input stream as input. | |
| SourceLocation | readNull () |
| Read a single JSON value of type Null from the input. | |
| bool | nextIsNull () const |
| Check if the next value of the input is a JSON value of type Null. | |
| SourceLocation | readBoolean (Boolean &value) |
| Read a single JSON value of type Boolean from the input. | |
| Boolean | readBoolean () |
| Read a single JSON value of type Boolean from the input. | |
| bool | nextIsBoolean () const |
| Check if the next value of the input is a JSON value of type Boolean. | |
| Optional< Boolean > | readBooleanOrNull () |
| Read a single nullable JSON value of type Boolean from the input. | |
| SourceLocation | readString (String &value) |
| Read a single JSON value of type String from the input. | |
| SourceLocation | readString (auto &value) |
| Read a single JSON value of type String from the input into any value that can be assigned from a standard string or deserialized from JSON. | |
| String | readString () |
| Read a single JSON value of type String from the input. | |
| bool | nextIsString () const |
| Check if the next value of the input is a JSON value of type String. | |
| Optional< String > | readStringOrNull () |
| Read a single nullable JSON value of type String from the input. | |
| SourceLocation | readNumber (Number &value) |
| Read a single JSON value of type Number from the input. | |
| template<typename T> | |
| SourceLocation | readNumber (T &value) |
| Read a single JSON value of type Number from the input into any value that Number can be explicitly converted to. | |
| Number | readNumber () |
| Read a single JSON value of type Number from the input. | |
| bool | nextIsNumber () const |
| Check if the next value of the input is a JSON value of type Number. | |
| template<typename T> | |
| T | readNumber () |
| Read a single JSON value of type Number from the input. | |
| Optional< Number > | readNumberOrNull () |
| Read a single nullable JSON value of type Number from the input. | |
| SourceLocation | readCustomObject (auto readProperty) |
| Read a single JSON object from the input, using a callback function for reading its properties. | |
| SourceLocation | readObject (Object &value) |
| Read a single JSON value of type Object from the input. | |
| template<typename DeserializerOverride = detail::NoDeserializerOverride> | |
| SourceLocation | readObject (auto &value, DeserializerOverride deserializerOverride={}) |
| Read a single JSON object from the input into any container of key-value pairs where the key and value types are default-constructible and deserializable from JSON, and where the container supports clear() and emplace(std::move(key), std::move(value)). | |
| Object | readObject () |
| Read a single JSON value of type Object from the input. | |
| template<typename Object> | |
| Object | readObject () |
| Read a single JSON object from the input into any container of key-value pairs where the key and value types are default-constructible and deserializable from JSON, and where the container supports clear() and emplace(std::move(key), std::move(value)). | |
| bool | nextIsObject () const |
| Check if the next value of the input is a JSON value of type Object. | |
| Optional< Object > | readObjectOrNull () |
| Read a single nullable JSON value of type Object from the input. | |
| SourceLocation | readCustomArray (auto readItem) |
| Read a single JSON array from the input, using a callback function for reading its items. | |
| SourceLocation | readArray (Array &value) |
| Read a single JSON value of type Array from the input. | |
| template<typename DeserializerOverride = detail::NoDeserializerOverride> | |
| SourceLocation | readArray (auto &value, DeserializerOverride deserializerOverride={}) |
| Read a single JSON array from the input into any container of elements that are default-constructible and deserializable from JSON, where the container supports clear() and push_back(std::move(element)). | |
| Array | readArray () |
| Read a single JSON value of type Array from the input. | |
| template<typename Array> | |
| Array | readArray () |
| Read a single JSON array from the input into any container of elements that are default-constructible and deserializable from JSON, where the container supports clear() and push_back(std::move(element)). | |
| bool | nextIsArray () const |
| Check if the next value of the input is a JSON value of type Array. | |
| Optional< Array > | readArrayOrNull () |
| Read a single nullable JSON value of type Array from the input. | |
| SourceLocation | readValue (Variant &value) |
| Read a single JSON value from the input. | |
| SourceLocation | readValue (Value &value) |
| Read a single JSON value from the input. | |
| Value | readValue () |
| Read a single JSON value from the input. | |
| template<typename T, typename DeserializerOverride = detail::NoDeserializerOverride> | |
| SourceLocation | readOptional (T &value, DeserializerOverride deserializerOverride={}) |
| Read a single nullable JSON value from the input into any value that is default-constructible, move-assignable and dereferencable, and where the dereferenced value type is default-constructible, deserializable from JSON and can be move-assigned into the value. | |
| template<typename Aggregate, typename DeserializerOverride = detail::NoDeserializerOverride> | |
| Optional< SourceLocation > | readAggregateField (StringView fieldName, Aggregate &aggregate, DeserializerOverride deserializerOverride={}) |
| Read a single JSON value from the input into any value into a specific named field of an aggregate whose fields are deserializable from JSON. | |
| template<typename Aggregate, typename DeserializerOverride = detail::NoDeserializerOverride> | |
| SourceLocation | readAggregateObject (Aggregate &value, DeserializerOverride deserializerOverride={}) |
| Read a single JSON value from the input into any value of aggregate type whose fields are deserializable from JSON. | |
| template<typename Aggregate, typename DeserializerOverride = detail::NoDeserializerOverride> | |
| Aggregate | readAggregateObject (DeserializerOverride deserializerOverride={}) |
| Read a single JSON value from the input into any value of aggregate type whose fields are deserializable from JSON. | |
| template<typename Aggregate, typename DeserializerOverride = detail::NoDeserializerOverride> | |
| SourceLocation | readAggregateArray (Aggregate &value, DeserializerOverride deserializerOverride={}) |
| Read a single JSON value from the input into any value of aggregate type whose fields are deserializable from JSON. | |
| template<typename Aggregate, typename DeserializerOverride = detail::NoDeserializerOverride> | |
| Aggregate | readAggregateArray (DeserializerOverride deserializerOverride={}) |
| Read a single JSON value from the input into any value of aggregate type whose fields are deserializable from JSON. | |
| template<typename T, typename DeserializerOverride = detail::NoDeserializerOverride> | |
| void | deserialize (T &value, DeserializerOverride deserializerOverride={}) |
| Read a JSON value from the input into any value that is deserializable from JSON using its corresponding implementation of Deserializer. | |
| template<typename T, typename DeserializerOverride = detail::NoDeserializerOverride> | |
| T | deserialize (DeserializerOverride deserializerOverride={}) |
| Read a JSON value from the input into any value that is deserializable from JSON using its corresponding implementation of Deserializer. | |
Public Attributes | |
| DeserializationOptions | options |
| The current options of the deserialization process. | |
Stateful wrapper object of an input stream for JSON deserialization.
| using grem::json::Reader::Token = typename Parser<It>::Token |
Token type of the reader's parser.
|
inlineexplicit |
Construct a reader with an input stream as input.
| stream | input stream to write to. |
| source | source location corresponding to the start of the given stream. |
| options | input options, see DeserializationOptions. |
|
inline |
Read a single JSON value of type Null from the input.
| json::Error | on invalid input. |
| std::length_error | if an internal size limit was exceeded. |
| std::bad_array_new_length | if an internal size limit was exceeded. |
| std::bad_alloc | on allocation failure. |
| any | exception thrown by the underlying input stream. |
|
inlinenodiscard |
Check if the next value of the input is a JSON value of type Null.
| json::Error | on invalid input. |
| std::length_error | if an internal size limit was exceeded. |
| std::bad_array_new_length | if an internal size limit was exceeded. |
| std::bad_alloc | on allocation failure. |
| any | exception thrown by the underlying input stream. |
|
inline |
Read a single JSON value of type Boolean from the input.
| value | reference to the output value to write the parsed result to. |
| json::Error | on invalid input. |
| std::length_error | if an internal size limit was exceeded. |
| std::bad_array_new_length | if an internal size limit was exceeded. |
| std::bad_alloc | on allocation failure. |
| any | exception thrown by the underlying input stream. |
|
inlinenodiscard |
Read a single JSON value of type Boolean from the input.
| json::Error | on invalid input. |
| std::length_error | if an internal size limit was exceeded. |
| std::bad_array_new_length | if an internal size limit was exceeded. |
| std::bad_alloc | on allocation failure. |
| any | exception thrown by the underlying input stream. |
|
inlinenodiscard |
Check if the next value of the input is a JSON value of type Boolean.
| json::Error | on invalid input. |
| std::length_error | if an internal size limit was exceeded. |
| std::bad_array_new_length | if an internal size limit was exceeded. |
| std::bad_alloc | on allocation failure. |
| any | exception thrown by the underlying input stream. |
Read a single nullable JSON value of type Boolean from the input.
| json::Error | on invalid input. |
| std::length_error | if an internal size limit was exceeded. |
| std::bad_array_new_length | if an internal size limit was exceeded. |
| std::bad_alloc | on allocation failure. |
| any | exception thrown by the underlying input stream. |
|
inline |
Read a single JSON value of type String from the input.
| value | reference to the output value to write the parsed result to. |
| json::Error | on invalid input. |
| std::length_error | if an internal size limit was exceeded. |
| std::bad_array_new_length | if an internal size limit was exceeded. |
| std::bad_alloc | on allocation failure. |
| any | exception thrown by the underlying input stream. |
|
inline |
Read a single JSON value of type String from the input into any value that can be assigned from a standard string or deserialized from JSON.
| value | reference to the output value to write the parsed result to. |
| json::Error | on invalid input. |
| std::length_error | if an internal size limit was exceeded. |
| std::bad_array_new_length | if an internal size limit was exceeded. |
| std::bad_alloc | on allocation failure. |
| any | exception thrown by the underlying input stream. |
| any | exception thrown by the underlying assignment operator or Deserializer implementation of the given value type. |
|
inlinenodiscard |
Read a single JSON value of type String from the input.
| json::Error | on invalid input. |
| std::length_error | if an internal size limit was exceeded. |
| std::bad_array_new_length | if an internal size limit was exceeded. |
| std::bad_alloc | on allocation failure. |
| any | exception thrown by the underlying input stream. |
|
inlinenodiscard |
Check if the next value of the input is a JSON value of type String.
| json::Error | on invalid input. |
| std::length_error | if an internal size limit was exceeded. |
| std::bad_array_new_length | if an internal size limit was exceeded. |
| std::bad_alloc | on allocation failure. |
| any | exception thrown by the underlying input stream. |
Read a single nullable JSON value of type String from the input.
| json::Error | on invalid input. |
| std::length_error | if an internal size limit was exceeded. |
| std::bad_array_new_length | if an internal size limit was exceeded. |
| std::bad_alloc | on allocation failure. |
| any | exception thrown by the underlying input stream. |
|
inline |
Read a single JSON value of type Number from the input.
| value | reference to the output value to write the parsed result to. |
| json::Error | on invalid input. |
| std::length_error | if an internal size limit was exceeded. |
| std::bad_array_new_length | if an internal size limit was exceeded. |
| std::bad_alloc | on allocation failure. |
| any | exception thrown by the underlying input stream. |
|
inline |
Read a single JSON value of type Number from the input into any value that Number can be explicitly converted to.
| value | reference to the output value to write the parsed result to. |
| json::Error | on invalid input. |
| std::length_error | if an internal size limit was exceeded. |
| std::bad_array_new_length | if an internal size limit was exceeded. |
| std::bad_alloc | on allocation failure. |
| any | exception thrown by the underlying input stream. |
| any | exception thrown by the underlying conversion or assignment operator of the given value type. |
|
inlinenodiscard |
Read a single JSON value of type Number from the input.
| json::Error | on invalid input. |
| std::length_error | if an internal size limit was exceeded. |
| std::bad_array_new_length | if an internal size limit was exceeded. |
| std::bad_alloc | on allocation failure. |
| any | exception thrown by the underlying input stream. |
|
inlinenodiscard |
Check if the next value of the input is a JSON value of type Number.
| json::Error | on invalid input. |
| std::length_error | if an internal size limit was exceeded. |
| std::bad_array_new_length | if an internal size limit was exceeded. |
| std::bad_alloc | on allocation failure. |
| any | exception thrown by the underlying input stream. |
|
inlinenodiscard |
Read a single JSON value of type Number from the input.
| T | number type to read. |
| json::Error | on invalid input. |
| std::length_error | if an internal size limit was exceeded. |
| std::bad_array_new_length | if an internal size limit was exceeded. |
| std::bad_alloc | on allocation failure. |
| any | exception thrown by the underlying input stream. |
Read a single nullable JSON value of type Number from the input.
| json::Error | on invalid input. |
| std::length_error | if an internal size limit was exceeded. |
| std::bad_array_new_length | if an internal size limit was exceeded. |
| std::bad_alloc | on allocation failure. |
| any | exception thrown by the underlying input stream. |
|
inline |
Read a single JSON object from the input, using a callback function for reading its properties.
| readProperty | function object for reading each property of the object, which should return void and accept the following parameters:
|
| json::Error | on invalid input. |
| std::length_error | if an internal size limit was exceeded. |
| std::bad_array_new_length | if an internal size limit was exceeded. |
| std::bad_alloc | on allocation failure. |
| any | exception thrown by the underlying input stream. |
| any | exception thrown by the callback functions. |
|
inline |
Read a single JSON value of type Object from the input.
| value | reference to the output value to write the parsed result to. |
| json::Error | on invalid input. |
| std::length_error | if an internal size limit was exceeded. |
| std::bad_array_new_length | if an internal size limit was exceeded. |
| std::bad_alloc | on allocation failure. |
| any | exception thrown by the underlying input stream. |
|
inline |
Read a single JSON object from the input into any container of key-value pairs where the key and value types are default-constructible and deserializable from JSON, and where the container supports clear() and emplace(std::move(key), std::move(value)).
| value | reference to the output container to write the parsed results into. |
| deserializerOverride | overloaded function object that overrides the default deserialization behavior for nested values whenever a call to deserializerOverride(reader, value) yields a valid matching overload. |
| json::Error | on invalid input. |
| std::length_error | if an internal size limit was exceeded. |
| std::bad_array_new_length | if an internal size limit was exceeded. |
| std::bad_alloc | on allocation failure. |
| any | exception thrown by the underlying input stream. |
| any | exception thrown by the default constructors of the given key/value types. |
| any | exception thrown by the Deserializer implementations of the given key/value types. |
| any | exception thrown by clear() or emplace(std::move(key), std::move(value)). |
|
inlinenodiscard |
Read a single JSON value of type Object from the input.
| json::Error | on invalid input. |
| std::length_error | if an internal size limit was exceeded. |
| std::bad_array_new_length | if an internal size limit was exceeded. |
| std::bad_alloc | on allocation failure. |
| any | exception thrown by the underlying input stream. |
Read a single JSON object from the input into any container of key-value pairs where the key and value types are default-constructible and deserializable from JSON, and where the container supports clear() and emplace(std::move(key), std::move(value)).
| Object | object type to read. |
| json::Error | on invalid input. |
| std::length_error | if an internal size limit was exceeded. |
| std::bad_array_new_length | if an internal size limit was exceeded. |
| std::bad_alloc | on allocation failure. |
| any | exception thrown by the underlying input stream. |
| any | exception thrown by the default constructors of the given key/value types. |
| any | exception thrown by the Deserializer implementations of the given key/value types. |
| any | exception thrown by clear() or emplace(std::move(key), std::move(value)). |
|
inlinenodiscard |
Check if the next value of the input is a JSON value of type Object.
| json::Error | on invalid input. |
| std::length_error | if an internal size limit was exceeded. |
| std::bad_array_new_length | if an internal size limit was exceeded. |
| std::bad_alloc | on allocation failure. |
| any | exception thrown by the underlying input stream. |
Read a single nullable JSON value of type Object from the input.
| json::Error | on invalid input. |
| std::length_error | if an internal size limit was exceeded. |
| std::bad_array_new_length | if an internal size limit was exceeded. |
| std::bad_alloc | on allocation failure. |
| any | exception thrown by the underlying input stream. |
|
inline |
Read a single JSON array from the input, using a callback function for reading its items.
| readItem | function object for reading each item of the array, which should return void and accept the following parameter:
|
| json::Error | on invalid input. |
| std::length_error | if an internal size limit was exceeded. |
| std::bad_array_new_length | if an internal size limit was exceeded. |
| std::bad_alloc | on allocation failure. |
| any | exception thrown by the underlying input stream. |
| any | exception thrown by the callback functions. |
|
inline |
Read a single JSON value of type Array from the input.
| value | reference to the output value to write the parsed result to. |
| json::Error | on invalid input. |
| std::length_error | if an internal size limit was exceeded. |
| std::bad_array_new_length | if an internal size limit was exceeded. |
| std::bad_alloc | on allocation failure. |
| any | exception thrown by the underlying input stream. |
|
inline |
Read a single JSON array from the input into any container of elements that are default-constructible and deserializable from JSON, where the container supports clear() and push_back(std::move(element)).
| value | reference to the output container to write the parsed results into. |
| deserializerOverride | overloaded function object that overrides the default deserialization behavior for nested items whenever a call to deserializerOverride(reader, value) yields a valid matching overload. |
| json::Error | on invalid input. |
| std::length_error | if an internal size limit was exceeded. |
| std::bad_array_new_length | if an internal size limit was exceeded. |
| std::bad_alloc | on allocation failure. |
| any | exception thrown by the underlying input stream. |
| any | exception thrown by the default constructor of the given element type. |
| any | exception thrown by the Deserializer implementation of the given element type. |
| any | exception thrown by clear() or push_back(std::move(element)). |
|
inlinenodiscard |
Read a single JSON value of type Array from the input.
| json::Error | on invalid input. |
| std::length_error | if an internal size limit was exceeded. |
| std::bad_array_new_length | if an internal size limit was exceeded. |
| std::bad_alloc | on allocation failure. |
| any | exception thrown by the underlying input stream. |
Read a single JSON array from the input into any container of elements that are default-constructible and deserializable from JSON, where the container supports clear() and push_back(std::move(element)).
| Array | array type to read. |
| json::Error | on invalid input. |
| std::length_error | if an internal size limit was exceeded. |
| std::bad_array_new_length | if an internal size limit was exceeded. |
| std::bad_alloc | on allocation failure. |
| any | exception thrown by the underlying input stream. |
| any | exception thrown by the default constructor of the given element type. |
| any | exception thrown by the Deserializer implementation of the given element type. |
| any | exception thrown by clear() or push_back(std::move(element)). |
|
inlinenodiscard |
Check if the next value of the input is a JSON value of type Array.
| json::Error | on invalid input. |
| std::length_error | if an internal size limit was exceeded. |
| std::bad_array_new_length | if an internal size limit was exceeded. |
| std::bad_alloc | on allocation failure. |
| any | exception thrown by the underlying input stream. |
Read a single nullable JSON value of type Array from the input.
| json::Error | on invalid input. |
| std::length_error | if an internal size limit was exceeded. |
| std::bad_array_new_length | if an internal size limit was exceeded. |
| std::bad_alloc | on allocation failure. |
| any | exception thrown by the underlying input stream. |
|
inline |
Read a single JSON value from the input.
| value | reference to the output value to write the parsed result to. |
| json::Error | on invalid input. |
| std::length_error | if an internal size limit was exceeded. |
| std::bad_array_new_length | if an internal size limit was exceeded. |
| std::bad_alloc | on allocation failure. |
| any | exception thrown by the underlying input stream. |
|
inline |
Read a single JSON value from the input.
| value | reference to the output value to write the parsed result to. |
| json::Error | on invalid input. |
| std::length_error | if an internal size limit was exceeded. |
| std::bad_array_new_length | if an internal size limit was exceeded. |
| std::bad_alloc | on allocation failure. |
| any | exception thrown by the underlying input stream. |
|
inlinenodiscard |
Read a single JSON value from the input.
| json::Error | on invalid input. |
| std::length_error | if an internal size limit was exceeded. |
| std::bad_array_new_length | if an internal size limit was exceeded. |
| std::bad_alloc | on allocation failure. |
| any | exception thrown by the underlying input stream. |
|
inline |
Read a single nullable JSON value from the input into any value that is default-constructible, move-assignable and dereferencable, and where the dereferenced value type is default-constructible, deserializable from JSON and can be move-assigned into the value.
If a null value is read, the output is assigned a default-constructed value of its own type.
| value | reference to the output value to write the result to. |
| deserializerOverride | overloaded function object that overrides the default deserialization behavior for the nested value whenever a call to deserializerOverride(reader, value) yields a valid matching overload. |
| json::Error | on invalid input. |
| std::length_error | if an internal size limit was exceeded. |
| std::bad_array_new_length | if an internal size limit was exceeded. |
| std::bad_alloc | on allocation failure. |
| any | exception thrown by the underlying input iterator. |
| any | exception thrown by the default constructor of the given value type or its dereferenced type. |
| any | exception thrown by the Deserializer implementation of the given value's dereferenced type. |
| any | exception thrown by the assignment operator of the given value type. |
|
inline |
Read a single JSON value from the input into any value into a specific named field of an aggregate whose fields are deserializable from JSON.
| fieldName | name of the field to read a value for. |
| aggregate | reference to the output aggregate whose field to write the parsed result into. |
| deserializerOverride | overloaded function object that overrides the default deserialization behavior for nested fields whenever a call to deserializerOverride(reader, value) yields a valid matching overload. |
| json::Error | on invalid input. |
| std::length_error | if an internal size limit was exceeded. |
| std::bad_array_new_length | if an internal size limit was exceeded. |
| std::bad_alloc | on allocation failure. |
| any | exception thrown by the underlying input iterator. |
| any | exception thrown by the Deserializer/DeserializerOverride implementations of the given field types. |
|
inline |
Read a single JSON value from the input into any value of aggregate type whose fields are deserializable from JSON.
The expected JSON format is an object with properties whose keys match the field names of the aggregate. Properties whose keys don't match any field name are ignored. Fields without a corresponding property are left unmodified.
| value | reference to the output value whose fields to write the parsed results into. |
| deserializerOverride | overloaded function object that overrides the default deserialization behavior for nested fields whenever a call to deserializerOverride(reader, value) yields a valid matching overload. |
| json::Error | on invalid input. |
| std::length_error | if an internal size limit was exceeded. |
| std::bad_array_new_length | if an internal size limit was exceeded. |
| std::bad_alloc | on allocation failure. |
| any | exception thrown by the underlying input iterator. |
| any | exception thrown by the Deserializer/DeserializerOverride implementations of the given field types. |
|
inlinenodiscard |
Read a single JSON value from the input into any value of aggregate type whose fields are deserializable from JSON.
The expected JSON format is an object with properties whose keys match the field names of the aggregate. Properties whose keys don't match any field name are ignored. Fields without a corresponding property are left default-initialized.
| Aggregate | aggregate type to read. |
| deserializerOverride | overloaded function object that overrides the default deserialization behavior for nested fields whenever a call to deserializerOverride(reader, value) yields a valid matching overload. |
| json::Error | on invalid input. |
| std::length_error | if an internal size limit was exceeded. |
| std::bad_array_new_length | if an internal size limit was exceeded. |
| std::bad_alloc | on allocation failure. |
| any | exception thrown by the underlying input iterator. |
| any | exception thrown by the Deserializer/DeserializerOverride implementations of the given field types. |
|
inline |
Read a single JSON value from the input into any value of aggregate type whose fields are deserializable from JSON.
The expected JSON format is an array with the same number of items as the number of fields in the aggregate.
| value | reference to the output value whose fields to write the parsed results into. |
| deserializerOverride | overloaded function object that overrides the default deserialization behavior for nested fields whenever a call to deserializerOverride(reader, value) yields a valid matching overload. |
| json::Error | on invalid input. |
| std::length_error | if an internal size limit was exceeded. |
| std::bad_array_new_length | if an internal size limit was exceeded. |
| std::bad_alloc | on allocation failure. |
| any | exception thrown by the underlying input iterator. |
| any | exception thrown by the Deserializer/DeserializerOverride implementations of the given field types. |
|
inlinenodiscard |
Read a single JSON value from the input into any value of aggregate type whose fields are deserializable from JSON.
The expected JSON format is an array with the same number of items as the number of fields in the aggregate.
| Aggregate | aggregate type to read. |
| deserializerOverride | overloaded function object that overrides the default deserialization behavior for nested fields whenever a call to deserializerOverride(reader, value) yields a valid matching overload. |
| json::Error | on invalid input. |
| std::length_error | if an internal size limit was exceeded. |
| std::bad_array_new_length | if an internal size limit was exceeded. |
| std::bad_alloc | on allocation failure. |
| any | exception thrown by the underlying input iterator. |
| any | exception thrown by the Deserializer/DeserializerOverride implementations of the given field types. |
|
inline |
Read a JSON value from the input into any value that is deserializable from JSON using its corresponding implementation of Deserializer.
| value | reference to the output value to write the parsed result to. |
| deserializerOverride | overloaded function object that overrides the default deserialization behavior for the value or its nested elements/fields whenever a call to deserializerOverride(reader, value) yields a valid matching overload. |
| any | exception thrown by the underlying input stream. |
| any | exception thrown by the Deserializer/DeserializerOverride implementation of T. |
|
inlinenodiscard |
Read a JSON value from the input into any value that is deserializable from JSON using its corresponding implementation of Deserializer.
| T | value type to read. |
| deserializerOverride | overloaded function object that overrides the default deserialization behavior for the value or its nested elements/fields whenever a call to deserializerOverride(reader, value) yields a valid matching overload. |
| any | exception thrown by the underlying input stream. |
| any | exception thrown by the Deserializer implementation of T. |
| DeserializationOptions grem::json::Reader::options |
The current options of the deserialization process.