Custom serialization
Cloud Code modules use the Newtonsoft.Json library to serialize and deserialize data. You can use the Newtonsoft.Json
attributes to customize the serialization and deserialization of your data.
For example, you can use the JsonProperty
attribute to change the name of a property in the JSON representation of your data:
using Newtonsoft.Json;
public class MyData
{
[JsonProperty("myProperty")]
public string MyProperty { get; set; }
}
For more information, refer to the Newtonsoft.Json documentation.