抱歉,我是JSON的新手,想写一个Perl脚本,可以将少量输入转换成JSON(格式如下)。要读取的值是" name"," location"," job"是这样的..还有一些子资源类型需要定义,应按以下方式构建..
输入或读取这些属性和值的最佳方法是什么?那是一个简单的文本文件还是每个属性的excel(名称,位置等)?有什么建议吗?
[{
"name":"James Anderson"
"location":"States"
"qualifier":{
"job":"auto dealer"
"experience":"20"
},
"Children": [
{
"name":"Mark Brown"
"age":"15"
}
"education": {
"college":"University of Texas"
}
{
"name":"Steve Brown"
"age":"10"
}
]
}
{
"name":"Mark Jones"
"location":"London"
"qualifier":{
"country":"UK"
"job":"business"
"citizen":"no"
}
}
]