How To Read JSON In Java (Set 3)

user.json {“employees”:[ {“firstName”:”Rahul”, “lastName”:”Dhiman”}, {“firstName”:”Anna”, “lastName”:”Smith”}, {“firstName”:”MS”, “lastName”:”Dhoni”} ]} TestJson.java import java.io.FileReader; import java.util.Iterator; import org.json.simple.JSONArray; import org.json.simple.JSONObject; import org.json.simple.parser.JSONParser;

Continue reading