The properties (key-value pairs) on an object are defined using the properties keyword. The value of properties is an object, where each key is the name of a property and each value is a JSON schema used to validate that property. For example, let’s say we want to define a simple schema for an address made up of a number, street name and.
You can use jsoncpp option -e to add explanatory comments to the generated code, which explains what the code does to help you understand the JSON API. Use jsoncpp option -M to narrow the generated code down to the essentials, without the initialization and cleanup parts of the code. This makes the generated code suitable for direct inclusion in your codebase.