为什么解析json数据是object?,怎么把json数据对应的值提取出来

小程序 文章 2022-01-28 00:00 484 0 全屏看文

AI助手支持GPT4.0

为什么解析json数据是object?,怎么把json数据对应的值提取出来Why is the parsed json data object? , how to extract the corresponding value of json data

为什么解析json数据是object?,怎么把json数据对应的值提取出来

想把json里面的数据读取出来,不知道哪点出错了,希望大佬指教一下

I want to read the data in JSON. I don't know what went wrong. I hope the boss can give me some advice

回答:

拾忆:

8个小时了,这个问题居然还没解决~

圣殿骑士:

json对象 无法显示的,要么console.log打印出来

假如你非常渴望显示,得变成字符串,用 JSON.stringify(你的对象)


Mr.Zhao:

不能直接显示json对象,需要点出来,基础不行啊

-EOF-

AI助手支持GPT4.0