That seems to be the only solution. Thanks. On Friday, January 12, 2018 at 12:01:19 AM UTC+1, Burak Serdar wrote: > > > > On Jan 11, 2018 3:36 PM, "Doğan Kurt" <kultig...@gmail.com <javascript:>> > wrote: > > I think i wasn't perfectly clear. When i say update i actually meant > insert, delete, update. > > I will delete big blocks of elements, insert new ones and modify some. If > i have to deal with the json format, what's the point of using json > package. I can write a json tokenizer myself. > > > You can unmarshal the json file to a map[string]interface{}, work on the > map, and then marshal it back. > > > On Thursday, January 11, 2018 at 10:55:36 PM UTC+1, Tamás Gulácsi wrote: >> >> Use json.Decoder.Token to walk through the whole file, modifying where >> needed, and just printing otherwise. > > -- > You received this message because you are subscribed to the Google Groups > "golang-nuts" group. > To unsubscribe from this group and stop receiving emails from it, send an > email to golang-nuts...@googlegroups.com <javascript:>. > For more options, visit https://groups.google.com/d/optout. > > >
-- You received this message because you are subscribed to the Google Groups "golang-nuts" group. To unsubscribe from this group and stop receiving emails from it, send an email to golang-nuts+unsubscr...@googlegroups.com. For more options, visit https://groups.google.com/d/optout.