cmakepp_lang/serialization/detail/serialize_list

cmakepp_lang/serialization/detail/serialize_list._cpp_serialize_list(return value)

Serializes a CMake list into JSON format.

This function will serialize a native CMake list into a JSON list. This means the contents of the list will be enclosed in [] and the contents of the list stored in a comma-separated list whose elements are the serialized values.

Parameters:
  • return (desc) – The name for the variable which will hold the result.

  • value (list) – The CMake list we are serializing.

Returns:

return will be set to the JSON serialized form of value.

Return type:

desc