cmakepp_lang/serialization/detail/serialize_string

cmakepp_lang/serialization/detail/serialize_string._cpp_serialize_string(return value)

Serializes a string according to the JSON standard.

This is the catch-all serialization for all CMakePP objects that do not have a serialize routine and are not Map or List instances. A string in JSON is simply the value enclosed in double quotes.

Parameters:
  • return (desc) – Name for the variable which will hold the returned value.

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

Returns:

return will be set to JSON serialized form of value.

Return type:

desc

Error Checking

This function is considered an implementation detail of cpp_serialize and does not perform any error checking.