我有一个JSON输入,如下所示
{
"id":4,
"locale":"en"
"restaurants": [
{ "addressLine" : "123 Road Dr", "city" : "City ST", "phone" : "555-555-5555", "distance" : "0" } ,
{ "addressLine" : "456 Fake St", "city" : "City ST", "phone" : "555-123-1212", "distance" : "0" }
] }
这里想要添加一个名为" fulladdress"的新字段。在"餐厅"中的每个对象下保存" addressLine"的连接值的数组;和"城市"。
我试过mutate,ruby过滤器,但看起来我错过了什么。
请帮忙