sjson
sjson copied to clipboard
Allow modification based on specified path
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.