Parse the JSON. const arr = JSON.parse(json); · For each object in the JSON, rename the key: obj.id = obj._id; delete obj. · Stringify the result. All together:.
確定! 回上一頁