cmakepp_lang/serialization/detail/serialize_map
- cmakepp_lang/serialization/detail/serialize_map._cpp_serialize_map(return value)
Serializes a map using JSON serialization.
This function encapsulates the algorithm required to serialize a CMakePP map into JSON. In JSON a map is a container whose contents are enclosed in “{}”. The contents of the map are expressed as a comma-separated list whose elements are the key-value pairs in the form
<key> : <value>where<key>and<value>are respectively the JSON serialized forms of the key and the value.- Parameters:
return (desc) – Name to use for the variable which will hold the result.
value (map) – The map we are serializing.
- Returns:
returnwill be set to the JSON serialized form ofvalue.- Return type:
desc
Error Checking
This routine is considered an implementation detail of
cpp_serializeand is not error checked.