JSON for Modern C++
3.0
|
template<template< typename U, typename V, typename...Args > class ObjectType = std::map, template< typename U, typename...Args > class ArrayType = std::vector, class StringType = std::string, class BooleanType = bool, class NumberIntegerType = int64_t, class NumberFloatType = double, template< typename U > class AllocatorType = std::allocator>
RFC 7159 describes JSON strings as follows:
To store objects in C++, a type is defined by the template parameters StringType which chooses the container (e.g., Unicode values are split by the JSON class into byte-sized characters during deserialization. Default typeWith the default values for StringType ( std::string
String comparisonRFC 7159 states:
This implementation is interoperable as it does compare strings code unit by code unit. StorageString values are stored as pointers in a |