【发布时间】:2021-08-24 00:21:58
【问题描述】:
旧 JSON 文件:
{
"firstName": "Rajesh",
"lastName": "Kumar",
"gender": "man",
"age": 24,
"address": {
"streetAddress": "126 Udhna",
"city": "Surat",
"state": "GJ",
"postalCode": "394221"
},
"phoneNumbers": [
{ "type": "home", "number": "7383627627" }
]
}
新的应该是:
{
"firstName": "Raghunath",
"lastName": "Dhara",
"gender": "man",
"age": 25,
"address": {
"streetAddress": "126 Udhna",
"city": "Surat",
"state": "GJ",
"postalCode": "394221"
},
"phoneNumbers": [
{ "type": "home", "number": "7383627627" }
]
}
请帮我替换 JSON 文件中的多个值。自 7 天以来,我一直在为此苦苦挣扎。
【问题讨论】: