JSON-Java offers classes like JSONObject and JSONArray that offer various ways to create Json via overloaded constructors. They can be used to read Json as well.
We are all familiar with JSON but have you ever thought what are the datatypes used in the same? Check this article to learn more and get more clarity on the topic.