tidwall / sjson

Set JSON values very quickly in Go

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

How to update all values of array

lancanming opened this issue · comments

at present:

{"name":[{"first":"li"},{"first":"dajun"}]}

expected:

{"name":[{"first":"wang"},{"first":"wang"}]}

Set("name.#.first","wang")