Feed JSON object from URL to following URL.
This gives Java class.
Using this Java class, build mock service.
Note: This is having issues when there are nested elements
This is well sophisticated way to convert JSON to Java Classes.
Note: Before you give JSON as input, find null values and make them some values. So that they will picked up and becomes variables. Otherwise it will cause trouble when it see values during run time.
This is similar to XPath.
Very useful when we need only few elements.