Re: [go-nuts] JSON Marshal for config file url encoding string.

2019-08-12 Thread Rich
Thanks!! Totally missed that one. Switched to from json.Marshal to json.Encode: jsonEnc:=json.NewEncoder(file) jsonEnc.SetIndent("", tab) jsonEnc.SetEscapeHTML(false) Works great!! On Monday, August 12, 2019 at 2:18:02 PM UTC-4, Jesper Louis Andersen wrote:

Re: [go-nuts] JSON Marshal for config file url encoding string.

2019-08-12 Thread Jesper Louis Andersen
Documented here: https://golang.org/pkg/encoding/json/#Marshal There is also a description of how to avoid it. On Mon, Aug 12, 2019 at 7:39 PM Rich wrote: > Hi I have an application that I wrote that uses JSON for the config file. > The application is a chatbot I use internally and allows users

[go-nuts] JSON Marshal for config file url encoding string.

2019-08-12 Thread Rich
Hi I have an application that I wrote that uses JSON for the config file. The application is a chatbot I use internally and allows users to run linux commands to get information both locally and via ssh. The chatbot interface uses basic html to render the output so 90% of the time I want to have