1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41
|
### jsoncons::basic_default_json_visitor
```cpp
#include <jsoncons/json_visitor.hpp>
template <
typename CharT
> class basic_default_json_visitor
```
A [basic_json_visitor](basic_json_visitor.md) that discards all incoming json events. Serves as a base class for user defined content handlers.
`basic_default_json_visitor` is noncopyable and nonmoveable.

Aliases for common character types are provided:
Type |Definition
--------------------|------------------------------
default_json_visitor |`basic_default_json_visitor<char>`
wdefault_json_visitor |`basic_default_json_visitor<wchar_t>`
#### Member types
Member type |Definition
------------------------------------|------------------------------
`char_type`|CharT
`string_view_type`|A non-owning view of a string, holds a pointer to character data and length. Supports conversion to and from strings. Will be typedefed to the C++ 17 [std::string view](http://en.cppreference.com/w/cpp/string/basic_string_view) if C++ 17 is detected or if `JSONCONS_HAS_STD_STRING_VIEW` is defined, otherwise proxied.
#### Constructors
basic_default_json_visitor(bool accept_more = true)
Constructs a `basic_default_json_visitor`. The parameter
`accept_more` indicates whether the content handler will, after
consuming an event, accept more events.
### See also
[basic_json_filter](basic_json_filter.md)
|