Does anyone know a Java JSON parser that works against Java interfaces and generates the implementation (at runtime). Analogous to the way Databinding in gwtquery works, but for the server-side?
Does anyone know a Java JSON parser that works against Java interfaces and generates
Share
Jackson’s MrBean extension is the only one I’ve used. Simply register the MrBean module with your ObjectMapper and any interfaces or abstract classes Jackson encounters will be materialized by MrBean automatically (any annotation on the interface or abstract class would take precedence if you want to create exceptions to this).
EDIT: Article with more detail