【发布时间】:2021-10-11 19:22:09
【问题描述】:
我知道这是一个非常简单的问题,但我是 json 的初学者。谁能回答如何在控制台中打印标题。
这是我的代码:
var jsonstr = '{"profile":{"name" : "raj","age":"35"}}' ;
var json = JSON.parse(jsonstr);
// here I want to print console.log("profile")
现在我想在控制台中打印“个人资料”。
【问题讨论】:
标签: javascript node.js arrays json printing