解析一個簡單的 JSON 字串

JSON.parse() 方法將字串解析為 JSON 並返回原始 JavaScript,陣列或物件:

const array = JSON.parse('[1, 2, "c", "d", {"e": false}]');
console.log(array); // logs: [1, 2, "c", "d", {e: false}]