JSON – Java

https://jsonformatter.curiousconcept.com/

Feed JSON object from URL to following URL.
This gives Java class.

https://timboudreau.com/blog/json/read

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.

http://www.jsonschema2pojo.org/

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.

——————————–

https://www.mkyong.com/java/jackson-2-convert-java-object-to-from-json/

—————–

JSON Path

https://github.com/json-path/JsonPath

This is similar to XPath.
Very useful when we need only few elements.

——————-

Advertisements

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 )

Twitter picture

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

Facebook photo

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

Google+ photo

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

Connecting to %s