You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
You can use gjson to get the Result and evaluate the Index field, and if not zero, that mean the Result is a slice of the original json, which can then be replaced using sjson.Set.
This gets the object that matches #(age==35) and because Index is greater than zero we use sjson.Set on the Raw result to replace name.first with "Jeff".
Hi,
Lets say;
this is an array version of the example used at readme, but here first age is 37 and second age is 35
How i can change name.first of age 35?
Is there a search of value like gjson?
Get("#(age==35)")
The text was updated successfully, but these errors were encountered: