我有json字符串,如下所示:
"users":[
{user_id=1,
user_name=foo,
profile_image=profile.png},
{user_id=2,
............},
.............
]
如何将其转换为键值对的java arraylist?
答案 0 :(得分:0)
const JSONStream = require('JSONStream');
const fs = require('fs');
fs.createReadStream('large_file.json')
.pipe(JSONStream.parse('*'))
.on('data', entry => {
console.log('entry', entry);
});