我有一个JSON文件,格式如下,我想要一个方法来轻松编辑两个数据集中的数据
通过在.txt或.xls文件中插入表(每个表有2列),如何轻松替换这两个数据表[x,x]
我曾尝试在MATLAB中使用jsondecode和JSONECODE函数来实现这一点,但当我重写到.json文件时,所有标识和行更改都丢失了。如何(以及使用哪种软件)使其保持正确的格式
{
"Compounds" :
[ "frutafresca" ],
"Property 1" :
{
"Scheme" : "Test1" ,
"StdValue" : 0.01 ,
"Data":
[
[ 353.15 , 108320 ],
[ 503.15 , 5120000 ],
[ 513.15 , 6071400 ]
]
},
"Property 2" :
{
"Scheme" : "Test 1" ,
"StdValue" : 0.01 ,
"Data":
[
[ 273.15 , 806.25 ],
[ 283.15 , 797.92 ],
[ 293.15 , 789.39 ],
[ 453.15 , 598.39 ],
[ 463.15 , 578.21 ],
[ 473.15 , 556.79 ]
]
}
}
是否有理由不使用标准lib
json
模块json
模块从docs开始:
相关问题 更多 >
编程相关推荐