below is my code, where Im trying to check id id = 101 and get name = Pushkar associated with id = 101. But the code is not working properly.
import org.json.simple.JSONArray; import org.json.JSONException; import org.json.simple.JSONObject; import org.json.simple.parser.JSONParser; import org.json.simple.parser.ParseException; public class A6 { public static void main(String[] args) throws ParseException, JSONException{ String out1="{\"Employee\":[{\"id\":\"101\",\"name\":\"Pushkar\",\"salary\":\"5000\"},{\"id\":\"102\",\"name\":\"Rahul\",\"salary\":\"4000\"},{\"id\":\"103\",\"name\":\"tanveer\",\"salary\":\"56678\"}]}";
source share