我有这个inputJson:
[{"firstName": "Kancha", "lastName": "Cheena"},
{"firstName": "Harley", "lastName": "Quinn"}]
预期输出:
[{"fname":"Kancha", "value": "Kancha Cheena"},
{"fname":"Harley", "value": "Harley Quinn"}]
我正在使用这样的表达式:
[*].{fname: firstName, value: firstName lastName}
你能建议纠正这个表达吗?