The following example shows how JsonConverter can be applied to RemoteCommand.
This can be achieved with
pe:assignableParam and attached
pe:convertJson.
JsonConverter only has one optional attribute "type". It specifies data type of the value object.
Any primitive type, array, non generic or generic type is supported.
Data type is sometimes required to convert a value to a JSON representation. All data types should be
fully qualified. Examples:
- "boolean"
- "int"
- "long[]"
- "java.lang.String"
- "java.util.Date"
- "java.util.Collection<java.lang.Integer>"
- "java.util.Map<java.lang.String, com.prime.FooPair<java.lang.Integer, java.util.Date>>"
- "com.prime.FooNonGenericClass"
- "com.prime.FooGenericClass<java.lang.String, java.lang.Integer>"
- "com.prime.FooGenericClass<int[], com.prime.FooGenericClass<com.prime.FooNonGenericClass, java.lang.Boolean>>"