json数据本身如何携带其他json数据

例如:
{

"sex":"man",
"IDcontent":" {"name":"xishilong" , "age":"22"} "

}

这样是不允许的因为括号“ ” 里面的字符串是不允许再有括号“”,如果要用的话就再括号前加\进行转译
修改后的例子:
{
“sex”:“man”,
“IDcontent” : " {“name”:“xishilong” , “age”:“22”} "
}这样

猜你喜欢

转载自blog.csdn.net/qq_31476455/article/details/89377227