Java Json create parser
import java.io.FileReader; import java.io.Reader; import javax.json.Json; import javax.json.stream.JsonParser; import javax.json.stream.JsonParser.Event; public class Main { public static void main(String[] args) throws Exception { Reader fileReader = new FileReader("BookObject.json"); JsonParser parser = Json.createParser(fileReader); while (parser.hasNext()) { Event ev = parser.next(); System.out.println(ev);/*ww w . j av a 2 s . com*/ if (ev.equals(Event.VALUE_STRING)) { System.out.println(parser.getString()); } } } }