Closed mnuessler closed 8 years ago
There is an example in the wiki how you can configure the pre-defined object mappers by using a ObjectMapperConfig, but it is slightly broken. Should be:
RestAssured.config = RestAssuredConfig.config().objectMapperConfig(new ObjectMapperConfig().gsonObjectMapperFactory( new GsonObjectMapperFactory() { public Gson create(Class cls, String charset) { return new GsonBuilder().setFieldNamingPolicy(FieldNamingPolicy.LOWER_CASE_WITH_UNDERSCORES).create(); } } ));
I think you may have reported this in wrong issue tracker?
There is an example in the wiki how you can configure the pre-defined object mappers by using a ObjectMapperConfig, but it is slightly broken. Should be: