Decode large stream JSON

后端 未结 3 1839
野的像风
野的像风 2020-12-16 11:21

I have a massive JSON array stored in a file (\"file.json\") I need to iterate through the array and do some operation on each element.

err = json.Unmarshal(         


        
3条回答
  •  情书的邮戳
    2020-12-16 11:49

    you can also check jsparser library which has been tested with large json files to allow stream based parsing with minimum memory footprint.

提交回复
热议问题