45 public std::invalid_argument
53 const std::type_index& type_index()
const {
return _type_index; }
56 std::type_index _type_index;
61 public std::runtime_error
81 std::type_index _type_index;
82 std::
string _type_name;
105 std::type_index _type_index;
106 std::
string _type_name;
162 using list = std::vector<formats>;
An adapter is both an extractor and a serializer.
Provides extra information to routines used for extraction and serialization.
Exception thrown if an insertion of an extractor or serializer into a formats is attempted,...
An adapter for enumeration types.
Thrown when formats::to_json does not have a serializer for the provided type.
no_serializer(const std::type_info &type)
Create a new exception.
A reader instance reads from some form of JSON source (probably a string) and converts it into a JSON...
A serializer holds the method for converting an arbitrary C++ type into a value.
Represents a single JSON value, which can be any one of a potential kind, each behaving slightly diff...
Copyright (c) 2014-2020 by Travis Gockel.
#define JSONV_NODISCARD
Warn if the caller discards the result of this function.
#define JSONV_PUBLIC
This function or class is part of the public API for JSON Voorhees.
Copyright (c) 2012-2020 by Travis Gockel.
duplicate_type_action
The action to take when an insertion of an extractor or serializer into a formats is attempted,...
@ exception
A duplicate_type_error should be thrown.
@ ignore
The existing extractor or serializer should be kept, but no exception should be thrown.
@ replace
The new extractor or serializer should be inserted, and no exception should be thrown.
ast_node_type
Marker type for an encountered token type.