#include <XrdOucJson.hh>
|
template<typename Value > |
std::pair< bool, BasicJsonType * > | handle_value (Value &&v, const bool skip_callback=false) |
|
|
BasicJsonType & | root |
| the parsed JSON value
|
|
std::vector< BasicJsonType * > | ref_stack {} |
| stack to model hierarchy of values
|
|
std::vector< bool > | keep_stack {} |
| stack to manage which values to keep
|
|
std::vector< bool > | key_keep_stack {} |
| stack to manage which object keys to keep
|
|
BasicJsonType * | object_element = nullptr |
| helper to hold the reference for the next object element
|
|
bool | errored = false |
| whether a syntax error occurred
|
|
const parser_callback_t | callback = nullptr |
| callback function
|
|
const bool | allow_exceptions = true |
| whether to throw exceptions in case of errors
|
|
BasicJsonType | discarded = BasicJsonType::value_t::discarded |
| a discarded value for the callback
|
|
◆ binary_t
template<typename BasicJsonType >
◆ number_float_t
template<typename BasicJsonType >
◆ number_integer_t
template<typename BasicJsonType >
◆ number_unsigned_t
template<typename BasicJsonType >
◆ parse_event_t
template<typename BasicJsonType >
◆ parser_callback_t
template<typename BasicJsonType >
◆ string_t
template<typename BasicJsonType >
◆ json_sax_dom_callback_parser() [1/3]
template<typename BasicJsonType >
◆ json_sax_dom_callback_parser() [2/3]
template<typename BasicJsonType >
◆ json_sax_dom_callback_parser() [3/3]
template<typename BasicJsonType >
◆ ~json_sax_dom_callback_parser()
template<typename BasicJsonType >
◆ binary()
template<typename BasicJsonType >
◆ boolean()
template<typename BasicJsonType >
◆ end_array()
template<typename BasicJsonType >
◆ end_object()
template<typename BasicJsonType >
◆ handle_value()
template<typename BasicJsonType >
template<typename Value >
- Parameters
-
[in] | v | value to add to the JSON value we build during parsing |
[in] | skip_callback | whether we should skip calling the callback function; this is required after start_array() and start_object() SAX events, because otherwise we would call the callback function with an empty array or object, respectively. |
- Invariant
- If the ref stack is empty, then the passed value will be the new root.
-
If the ref stack contains a value, then it is an array or an object to which we can add elements
- Returns
- pair of boolean (whether value should be kept) and pointer (to the passed value in the ref_stack hierarchy; nullptr if not kept)
References JSON_ASSERT, and nlohmann::detail::value.
◆ is_errored()
template<typename BasicJsonType >
◆ key()
template<typename BasicJsonType >
◆ null()
template<typename BasicJsonType >
◆ number_float()
template<typename BasicJsonType >
◆ number_integer()
template<typename BasicJsonType >
◆ number_unsigned()
template<typename BasicJsonType >
◆ operator=() [1/2]
template<typename BasicJsonType >
◆ operator=() [2/2]
template<typename BasicJsonType >
◆ parse_error()
template<typename BasicJsonType >
template<class Exception >
◆ start_array()
template<typename BasicJsonType >
◆ start_object()
template<typename BasicJsonType >
◆ string()
template<typename BasicJsonType >
◆ allow_exceptions
template<typename BasicJsonType >
whether to throw exceptions in case of errors
◆ callback
template<typename BasicJsonType >
◆ discarded
template<typename BasicJsonType >
a discarded value for the callback
◆ errored
template<typename BasicJsonType >
whether a syntax error occurred
◆ keep_stack
template<typename BasicJsonType >
stack to manage which values to keep
◆ key_keep_stack
template<typename BasicJsonType >
stack to manage which object keys to keep
◆ object_element
template<typename BasicJsonType >
helper to hold the reference for the next object element
◆ ref_stack
template<typename BasicJsonType >
stack to model hierarchy of values
◆ root
template<typename BasicJsonType >
The documentation for this class was generated from the following file: