tidwall / gjson

Get JSON values quickly - JSON parser for Go
MIT License
13.88k stars 841 forks source link

I need a set function to modify json string #329

Closed 1157987916 closed 10 months ago

1157987916 commented 10 months ago

I want to modify a json string.when I get a key value and processoring.I want to add key to json string.for example, ‘{"a":"a"}‘ add kv -> '{"a":"a","k":"v"}'

1157987916 commented 10 months ago

use sjson https://github.com/tidwall/sjson