Hi, even tough json is a data exchange format I find it sometimes useful to use these files as configs. Then after a while you would like to add a comment or some other person has forgotten to format the file and the formatter you are using messes the file up. also when it gets bigger its sometimes very unreadable.
A solution to this could be to use a file format with comments which extends json. Something like YAML or http://hjson.org/ If I did know about hjson earlier I would probably just try to have people use the same formatter in project I take part. Since I did not, here is a proposal for a json extension with a formatter which tries to mimic the behavior of gofmt. https://komkom.github.io/ This is all in early development - any feedback would be greatly appreciated! Best Michael -- 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.