如何在JSON的ajax Javascript中从这些对象中加载名称。
{"name":"Mehta","email":"aman@gmail.com"}{"name":"Jack","email":"jack@gmail.com"}{"name":"Oggy","email":"oggy@gmail.com"}
答案 0 :(得分:1)
从给定的值开始,缺少一些字符。对于多个值,请使用逗号分隔并打开和关闭方括号[]。下面是示例:
[
{
"name":"Mehta",
"email":"aman@gmail.com"
},
{
"name":"Jack",
"email":"jack@gmail.com"
},
{
"name":"Oggy",
"email":"oggy@gmail.com"
}
]
希望有帮助