28#include "json/json.hpp"
29#include "json/mappingOptions.hpp"
49 || std::is_enum_v<anch::json::detail::MapperType<T>>
68 static constexpr std::string_view
MEDIA_TYPE =
"application/json";
87 static
void serialize(const T& value, std::ostream& out, const
Options& options);
112 template<anch::json::Mappable T>
115 if constexpr (std::is_same_v<T, std::string>) {
123 template<anch::json::Mappable T>
126 if constexpr (std::is_same_v<T, std::string>) {
Type described by an anch::Mapping specialization.
Definition mapping.hpp:66
Type which the JSON format maps.
Definition format.hpp:48
JSON namespace.
Definition constants.hpp:27
constexpr bool isPrimitive()
Check if type is a primitive JSON type.
void deserialize(T &value, std::istream &input, const anch::json::MappingOptions &options=anch::json::DEFAULT_MAPPING_OPTIONS)
void serialize(const T &value, std::ostream &out, const anch::json::MappingOptions &options=anch::json::DEFAULT_MAPPING_OPTIONS)
MappingOptions DEFAULT_MAPPING_OPTIONS
AnCH framework base namespace.
Definition app.hpp:30
JSON mapping options.
Definition mappingOptions.hpp:38