I'm trying to use DSL-JSON running one of the examples.
I'm getting the following error:
Exception in thread "main" java.io.IOException: Unable to serialize provided object. Failed to find serializer for: class dsl.test.Example$Model
at com.dslplatform.json.DslJson.serialize(DslJson.java:2718)
at dsl.test.Example.main(Example.java:231)
I've only added the dependency on my pom.xml:
<dependency>
<groupId>com.dslplatform</groupId>
<artifactId>dsl-json</artifactId>
<version>1.7.3</version>
</dependency>
What's missing?