Parse data of size about 3MB using json in ANDROID?

后端 未结 1 1094
我寻月下人不归
我寻月下人不归 2020-12-17 05:44

I have to parse data by HTTP request of size about 3MB, through JSon, but the parser that I am using is unable to do so. here is the JSon parser:

public stat         


        
相关标签:
1条回答
  • 2020-12-17 06:05

    You're parsing whole 3MB string in memory. It causes out of memory exception. Parse large data in stream:

    • JsonReader since API level 11
    • Android JSON library or for large data Jackson Streaming API
    0 讨论(0)
提交回复
热议问题