解析一个简单的 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}]