|
JSON Voorhees
Killer JSON for C++
|
Create an adapter with the specified mapping values.
| enum_name | A user-friendly name for this enumeration to be used in error messages. |
| mapping | A list of C++ types and values to use in to_json and extract. It is okay to have a C++ value with more than one JSON representation. In this case, the first JSON representation will be used in to_json, but all JSON representations will be interpreted as the C++ value. It is also okay to have the same JSON representation for multiple C++ values. In this case, the first JSON representation provided for that value will be used in extract. |
: Enum Adapter