Use Jakson
U can convert JSON to DTO and back automatically with
U can skip unneeded properties with the following method:
ObjectMapper:
- Convert Java object to JSON,
writeValue(...) - Convert JSON to Java object,
readValue(...) - Convert JSON to List of Java objects,
readValues(...)
@JsonProperty(...) annotation.U can skip unneeded properties with the following method:
configure(DeserializationFeature.FAIL_ON_UNKNOWN_PROPERTIES, false);
