cmakepp_lang/serialization/detail/serialize_value

cmakepp_lang/serialization/detail/serialize_value._cpp_serialize_value(return value)

Dispatches based on type to the appropriate serialization implementation.

This function is used to encapsulate the logic required to dispatch to the correct serialization implementation based on the type of the input value.

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

  • value (str) – The value we are serializing.

Returns:

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

Return type:

desc

Error Checking

This function is considered an implementation detail of cpp_serialize and performs no error-checking.