解析javascript中的json对象变得未定义 [英] parse json Object in javascript getting undefined
本文介绍了解析javascript中的json对象变得未定义的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
我收到了json格式的响应,但是我在下面如何解析它的问题是我的代码
I got response in json format but i m facing problem to how to parse it below is my code
var jsonValue = JSON.stringify(response);
我得到警报jsonValue后
after alert jsonValue i got
[
["vlue1", 18, "ram", "xmy"],
["value2", 21, "abc", "xyz"]
]
如何在JavaScript中解析它?
How to parse it in JavaScript?
推荐答案
var obj = JSON.parse(response);
这篇关于解析javascript中的json对象变得未定义的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文