[]
Represents the JSON coders for various data types.
public static class JsonCoders
Name | Description |
---|---|
Bool | Gets a coder for the bool type. |
BoolDefFalse | Gets a coder for the bool type with a default value of an |
Double | Gets a coder for the double type. |
Int | Gets a coder for the int type. |
IntDefZero | Gets a coder for the int type with a default value of |
NullableDouble | Gets a coder for the nullable double type. |
String | Gets a coder for the string type. |
StringDefEmpty | Gets a coder for the string type with a default value of an empty string. |
StringDefNull | Gets a coder for the string type with a default value of |
Name | Description |
---|---|
CollectionDefEmpty<T, TCollection>(JsonCoder<T>) | Gets a coder for the Collection<T> type with a default value of an empty collection. |
CollectionDefNull<T, TCollection>(JsonCoder<T>) | Gets a coder for the Collection<T> type with a default value of |
Collection<T, TCollection>(JsonCoder<T>) | Gets a coder for the Collection<T> type. |
Default<T>(JsonCoder<T>, T) | Encodes the specified default value as undefined and skips it during serialization. During deserialization, the undefined value will be replaced with the specified default value. |
Enum<T>() | Gets a coder for the Enum<T>() type. |
ListDefEmpty<T>(JsonCoder<T>) | Gets a coder for the IList<T> type with a default value of empty list. |
List<T>(JsonCoder<T>) | Gets a coder for the IList<T> type. |
NullAsUndefined<T>(JsonCoder<T>) | if variant value is undefined it will be converted to null instead During deserialization, the null value will be replaced with the undefiend variant should be usedin in combination with Default coder |
Optional<T>(JsonCoder<T>) | Skips empty objects during serialization and deserializes undefined values as a default object. |
Optional<T>(JsonCoder<T>, T) | Encodes the specified default value as undefined and skips it during serialization. During deserialization, the undefined value will be replaced with the specified default value. |