当我打电话时JSON.stringify
,我得到一个 JSON 字符串,如[{"id":"001","name":"Mary"},{"id":"002","name":
"Tom"}]
. 我怎样才能使它看起来像这样?
[
{id: 7, name: "Ruby"},
{id: 29, name: "C#"},
{id: 31, name: "Fortran"},
{id: 37, name: "Visual Basic"},
{id: 41, name: "C"},
{id: 43, name: "C++"},
{id: 47, name: "Java"}
]