<dependency>
<groupId>com.github.davidmoten</groupId>
<artifactId>json-shapeshifter</artifactId>
<version>0.3.2</version>
</dependency>
import com.github.davidmoten.json.JsonShaper;
public class JsonShapeshifterExample {
public static void main(String[] args) {
String json = "{\"name\":\"John\", \"age\":30}";
String transformedJson = JsonShaper.shape(json)
.rename("name", "fullName")
.build();
System.out.println(transformedJson);
}
}