Open pal-saurabh opened 3 years ago
trying to give an example. In an array of objects, can we have support for updating one object based on specifying attribute and value of individual object in the array.
{ "attrs": [{ "name": "location", "value": "Chicago" }, { "name": "address", "value": "Magnificent Mile" }, { "name": "count", "value": "50" }] }
value, _ := sjson.Set("attrs#(name=="location")", "Lewisville")
Unfortunately, this feature is currently not available.
trying to give an example. In an array of objects, can we have support for updating one object based on specifying attribute and value of individual object in the array.
{ "attrs": [{ "name": "location", "value": "Chicago" }, { "name": "address", "value": "Magnificent Mile" }, { "name": "count", "value": "50" }] }
value, _ := sjson.Set("attrs#(name=="location")", "Lewisville")