📅  最后修改于: 2022-03-11 15:01:39.242000             🧑  作者: Mango
const jsonString = '{ "key": "value", "key2": ["a","b"] }';
const obj = JSON.parse( jsonString );
alert( obj.key ); // "value"
alert( obj.key2[1] ); // "b"