How do I parse JSON objects from a JSONArray?

后端 未结 5 1310
南旧
南旧 2021-01-24 06:18

I have a very large JSON file in the following format:

[{\"fullname\": \"name1\", \"id\": \"123\"}, {\"fullname\": \"name2\", \"id\": \"245\"}, {\"fullname\": \         


        
5条回答
  •  误落风尘
    2021-01-24 06:54

    I would suggest going with Jackson, in particular the Jackson Streaming API which is perfect for parsing large arrays like this.

    See this answer: https://stackoverflow.com/a/24838392/3765428

提交回复
热议问题