If i want to *read *just a certain part of a json file, i create my struct and unmarshall the json data. It works wonderfully.
But what if i want to *modify *a certain part of the json file and save my changes, of course i don't want other parts to be lost. Consider this json; { "this_i_want_to_modify": *100*, "this_i_dont_even_know_about": { "some_field": "data", "some_other": "da_ta" } } Sure i can create the necessary structures for the whole json in Go and unmarshall-edit-marshall, but i am not the maintainer of this json file. There can be new fields tomorrow and if i don't update my code, my unmarshall-marshall will delete those new fields. Is there an idiomatic way to accomplish this? Thanks. -- 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.