This repository has code for merging Json Type Definitions (JTD). The merge policy used is intersection of two JTDs.
Read about JTD here: https://jsontypedef.com/docs/implementations/
Get the Java Implementation of JTD here: https://github.com/jsontypedef/json-typedef-java