我在我的控制台中有以下回复:
var response = [Object { entity_id=5874, parent_id=5862, label="Mountain Biking"}, Object { entity_id=5883, parent_id=5862, label="Winter"}]
如何在json数组中进行上述转换:
var response = [{ entity_id:5874, parent_id:5862, label:"Mountain Biking"},{ entity_id:5883, parent_id:5862, label:"Winter"}]
我试图将其字符串化为:
JSON.stringify(response)
抛出循环对象的异常。
请在上面帮助我。