I am trying to parse a son file, and I don\'t know what I\'m doing wrong (of course, I don\'t really know what I\'m doing right, either).
file.json
you are getting JSONArray not JsonObject
JSONParser parser = new JSONParser(); Object obj = parser.parse(new FileReader("/path/to/file.json")); JSONArray json = (JSONArray) obj;
Than loop this and get jsonobject