How can I force the jsonschema2pojo generated class to implement serializable interface? I am parsing plain json and not JSON Schema so making the json contain "javaInterfaces" array is out of the question. Here is the working code:
JCodeModel codeModel = new JCodeModel();
SchemaMapper mapper = new SchemaMapper(new RuleFactory(config, new GsonAnnotator(), new SchemaStore()), new SchemaGenerator());
mapper.generate(codeModel, className, packageName, jsonStr);
return codeModel;