- All Implemented Interfaces:
- Serializable
public class JsonException
extends SphereException
Exception concerning JSON.
This may occur when parsing JSON from the Composable Commerce API and the POJO mapping does not work correctly.
No suitable constructor
detailMessage: com.fasterxml.jackson.databind.JsonMappingException:
No suitable constructor found for type [simple type, class a.full.ClassName]:
can not instantiate from JSON object (missing default constructor or creator,
or perhaps need to add/enable type information?)
Solution, add JsonCreator to the constructor of the class a.full.ClassName.
- See Also:
- Serialized Form