DAW JSON Link
|
Functions | |
template<typename JsonMember , bool KnownBounds, json_options_t P, typename Allocator , auto... PolicyFlags> | |
constexpr auto | from_json (basic_json_value< P, Allocator > value, options::parse_flags_t< PolicyFlags... >) |
Parse a value from a json_value. More... | |
template<typename JsonMember , bool KnownBounds, json_options_t P, typename Allocator , auto... PolicyFlags> | |
constexpr auto | from_json (basic_json_value< P, Allocator > value, std::string_view member_path, options::parse_flags_t< PolicyFlags... >) |
Parse a JSONMember from the json_data starting at member_path. More... | |
template<typename JsonMember , bool KnownBounds, json_options_t PolicyFlags, typename Allocator > | |
constexpr auto | from_json (basic_json_value< PolicyFlags > value, std::string_view member_path) |
Parse a JSONMember from the json_data starting at member_path. More... | |
template<typename JsonMember , bool KnownBounds, json_options_t PolicyFlags, typename Allocator > | |
constexpr auto | from_json (basic_json_value< PolicyFlags, Allocator > value) |
Parse a value from a json_value. More... | |
template<typename JsonMember , bool KnownBounds, typename String > | |
constexpr auto | from_json (String &&json_data) |
Construct the JSONMember from the JSON document argument. More... | |
template<typename JsonMember , bool KnownBounds, typename String , auto... PolicyFlags> | |
constexpr auto | from_json (String &&json_data, options::parse_flags_t< PolicyFlags... >) |
Construct the JSONMember from the JSON document argument. More... | |
template<typename JsonMember , bool KnownBounds, typename String > | |
constexpr auto | from_json (String &&json_data, std::string_view member_path) |
Parse a JSONMember from the json_data starting at member_path. More... | |
template<typename JsonMember , bool KnownBounds, typename String , auto... PolicyFlags> | |
constexpr auto | from_json (String &&json_data, std::string_view member_path, options::parse_flags_t< PolicyFlags... >) |
Parse a JSONMember from the json_data starting at member_path. More... | |
template<typename JsonMember , bool KnownBounds, typename String , typename Allocator > | |
constexpr auto | from_json_alloc (String &&json_data, Allocator const &alloc) |
Construct the JSONMember from the JSON document argument. More... | |
template<typename JsonMember , bool KnownBounds, typename String , typename Allocator , auto... PolicyFlags> | |
constexpr auto | from_json_alloc (String &&json_data, Allocator const &alloc, options::parse_flags_t< PolicyFlags... >) |
Construct the JSONMember from the JSON document argument. More... | |
template<typename JsonMember , bool KnownBounds, typename String , typename Allocator > | |
constexpr auto | from_json_alloc (String &&json_data, std::string_view member_path, Allocator const &alloc) |
Parse a JSONMember from the json_data starting at member_path. More... | |
template<typename JsonMember , bool KnownBounds, typename String , typename Allocator , auto... PolicyFlags> | |
constexpr auto | from_json_alloc (String &&json_data, std::string_view member_path, Allocator const &alloc, options::parse_flags_t< PolicyFlags... >) |
Parse a JSON Member from the json_data starting at member_path. More... | |
template<typename JsonElement , typename Container , typename Constructor , bool KnownBounds, typename String > | |
constexpr Container | from_json_array (String &&json_data) |
Parse JSON data where the root item is an array. More... | |
template<typename JsonElement , typename Container , typename Constructor , bool KnownBounds, typename String , auto... PolicyFlags> | |
constexpr Container | from_json_array (String &&json_data, options::parse_flags_t< PolicyFlags... >) |
Parse JSON data where the root item is an array. More... | |
template<typename JsonElement , typename Container , typename Constructor , bool KnownBounds, typename String > | |
constexpr Container | from_json_array (String &&json_data, std::string_view member_path) |
Parse JSON data where the root item is an array. More... | |
template<typename JsonElement , typename Container , typename Constructor , bool KnownBounds, typename String , auto... PolicyFlags> | |
constexpr Container | from_json_array (String &&json_data, std::string_view member_path, options::parse_flags_t< PolicyFlags... >) |
Parse JSON data where the root item is an array. More... | |
|
inlineconstexpr |
Parse a value from a json_value.
JsonMember | The type of the item being parsed |
value | JSON data, see basic_json_value |
KnownBounds | The bounds of the json_data are known to contain the whole value |
daw::json::json_exception |
Definition at line 381 of file daw_from_json.h.
|
constexpr |
Parse a JSONMember from the json_data starting at member_path.
value | JSON data, see basic_json_value |
member_path | A dot separated path of member names, default is the root. Array indices are specified with square brackets e.g. [5] is the 6th item |
JsonMember | The type of the item being parsed |
KnownBounds | The bounds of the json_data are known to contain the whole value |
daw::json::json_exception |
Definition at line 433 of file daw_from_json.h.
|
constexpr |
Parse a JSONMember from the json_data starting at member_path.
value | JSON data, see basic_json_value |
member_path | A dot separated path of member names, default is the root. Array indices are specified with square brackets e.g. [5] is the 6th item |
JsonMember | The type of the item being parsed |
KnownBounds | The bounds of the json_data are known to contain the whole value |
daw::json::json_exception |
Definition at line 480 of file daw_from_json.h.
|
inlineconstexpr |
Parse a value from a json_value.
JsonMember | The type of the item being parsed |
value | JSON data, see basic_json_value |
KnownBounds | The bounds of the json_data are known to contain the whole value |
daw::json::json_exception |
Definition at line 414 of file daw_from_json.h.
|
constexpr |
Construct the JSONMember from the JSON document argument.
JsonMember | any bool, arithmetic, string, string_view, daw::json::json_data_contract |
json_data | JSON string data |
KnownBounds | The bounds of the json_data are known to contain the whole value |
daw::json::json_exception |
Definition at line 95 of file daw_from_json.h.
|
constexpr |
Construct the JSONMember from the JSON document argument.
JsonMember | any bool, arithmetic, string, string_view, daw::json::json_data_contract |
json_data | JSON string data |
KnownBounds | The bounds of the json_data are known to contain the whole value |
daw::json::json_exception |
If the string is known to have a trailing zero, allow optimization on that
Definition at line 39 of file daw_from_json.h.
|
constexpr |
Parse a JSONMember from the json_data starting at member_path.
JsonMember | The type of the item being parsed |
json_data | JSON string data |
member_path | A dot separated path of member names, default is the root. Array indices are specified with square brackets e.g. [5] is the 6th item |
KnownBounds | The bounds of the json_data are known to contain the whole value |
daw::json::json_exception |
Definition at line 264 of file daw_from_json.h.
|
constexpr |
Parse a JSONMember from the json_data starting at member_path.
JsonMember | The type of the item being parsed |
json_data | JSON string data |
member_path | A dot separated path of member names, default is the root. Array indices are specified with square brackets e.g. [5] is the 6th item |
KnownBounds | The bounds of the json_data are known to contain the whole value |
daw::json::json_exception |
If the string is known to have a trailing zero, allow optimization on that
Definition at line 191 of file daw_from_json.h.
|
constexpr |
Construct the JSONMember from the JSON document argument.
JsonMember | any bool, arithmetic, string, string_view, daw::json::json_data_contract |
json_data | JSON string data |
KnownBounds | The bounds of the json_data are known to contain the whole value |
daw::json::json_exception |
Definition at line 169 of file daw_from_json.h.
|
constexpr |
Construct the JSONMember from the JSON document argument.
JsonMember | any bool, arithmetic, string, string_view, daw::json::json_data_contract |
json_data | JSON string data |
KnownBounds | The bounds of the json_data are known to contain the whole value |
daw::json::json_exception |
If the string is known to have a trailing zero, allow optimization on that
Definition at line 114 of file daw_from_json.h.
|
constexpr |
Parse a JSONMember from the json_data starting at member_path.
JsonMember | The type of the item being parsed |
json_data | JSON string data |
member_path | A dot separated path of member names, default is the root. Array indices are specified with square brackets e.g. [5] is the 6th item |
KnownBounds | The bounds of the json_data are known to contain the whole value |
daw::json::json_exception |
Definition at line 360 of file daw_from_json.h.
|
constexpr |
Parse a JSON Member from the json_data starting at member_path.
JsonMember | The type of the item being parsed |
json_data | JSON string data |
member_path | A dot separated path of member names, default is the root. Array indices are specified with square brackets e.g. [5] is the 6th item |
KnownBounds | The bounds of the json_data are known to contain the whole value |
daw::json::json_exception |
If the string is known to have a trailing zero, allow optimization on that
Definition at line 287 of file daw_from_json.h.
|
constexpr |
Parse JSON data where the root item is an array.
JsonElement | The type of each element in array. Must be one of the above json_XXX classes. This version is checked |
Container | Container to store values in |
Constructor | Callable to construct Container with no arguments |
json_data | JSON string data containing array |
KnownBounds | The bounds of the json_data are known to contain the whole value |
daw::json::json_exception |
Definition at line 567 of file daw_from_json.h.
|
constexpr |
Parse JSON data where the root item is an array.
JsonElement | The type of each element in array. Must be one of the above json_XXX classes. This version is checked |
Container | Container to store values in |
Constructor | Callable to construct Container with no arguments |
json_data | JSON string data containing array |
KnownBounds | The bounds of the json_data are known to contain the whole value |
daw::json::json_exception |
If the string is known to have a trailing zero, allow optimization on that
Definition at line 499 of file daw_from_json.h.
|
constexpr |
Parse JSON data where the root item is an array.
JsonElement | The type of each element in array. Must be one of the above json_XXX classes. This version is checked |
Container | Container to store values in |
Constructor | Callable to construct Container with no arguments |
json_data | JSON string data containing array |
member_path | A dot separated path of member names to start parsing from. Array indices are specified with square brackets e.g. [5] is the 6th item |
KnownBounds | The bounds of the json_data are known to contain the whole value |
daw::json::json_exception |
Definition at line 679 of file daw_from_json.h.
|
constexpr |
Parse JSON data where the root item is an array.
JsonElement | The type of each element in array. Must be one of the above json_XXX classes. This version is checked |
Container | Container to store values in |
Constructor | Callable to construct Container with no arguments |
json_data | JSON string data containing array |
member_path | A dot separated path of member names to start parsing from. Array indices are specified with square brackets e.g. [5] is the 6th item |
KnownBounds | The bounds of the json_data are known to contain the whole value |
daw::json::json_exception |
If the string is known to have a trailing zero, allow optimization on that
Definition at line 591 of file daw_from_json.h.