JSON (JavaScript Object Notation) is a simple, lightweight and easy to read and write data exchange formats. In Java, normally we use Jackson or Gson to parse JSON.

1. Jackson

Tested with Jackson 2.9.8

2. Gson

Tested with Gson 2.8.5

3. FastJson

Tested with FastJson 1.2.57

  • FastJson – Convert Java objects to / from JSON

FAQs

  • JSON.simple – How to parse JSON
  • @Deprecated JSON.simple 1.x – Read and write JSON
  • JSONAssert – How to unit test JSON data
  • Spring Test – How to test a JSON Array in jsonPath
  • JavaScript Array to JSON

References

Leave a Reply

Your email address will not be published. Required fields are marked *