JSON – Java


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.



One thought on “JSON – Java

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out /  Change )

Google photo

You are commenting using your Google account. Log Out /  Change )

Twitter picture

You are commenting using your Twitter account. Log Out /  Change )

Facebook photo

You are commenting using your Facebook account. Log Out /  Change )

Connecting to %s

This site uses Akismet to reduce spam. Learn how your comment data is processed.