Is there a generic java library which can be used for performing

  1. JSON to JSON transformation without generating java Object mappers.
  2. Validate the input Json before doing #1

Think Jolt does only #1 nicely using a Jolt-Spec but does not help in validation ( or is there a way ?). Alternative seems to be to use JsonSurfer for large Json files and streaming data but it does not do #1 AND #2 either.

For #2 is JsonPath the only option ?

In short, to perform JSON to JSON transformation AND validation is there a single library that can be used ?

0 Answers