When working on important data (PHI, PII,…etc), better not to use online JSON Formatters and validators. They also have limitations.
Best tool is use JSON plugin for Eclipse
This plugin adds support for JSON files to eclipse. You can install the latest version directly from this update site:
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.