Re: [go-nuts] Json to CSV parsing with raw Data

2021-05-28 Thread Brian Candler
Another approach: https://play.golang.org/p/vTVE3nrGs86 On Friday, 28 May 2021 at 19:00:11 UTC+1 seank...@gmail.com wrote: > maybe something like https://play.golang.org/p/z-Yp4bh7jto > > On Friday, May 28, 2021 at 6:59:34 PM UTC+2 manlio@gmail.com wrote: > >> On Friday, May 28, 2021 at 6:26:

Re: [go-nuts] Json to CSV parsing with raw Data

2021-05-28 Thread Sean Liao
maybe something like https://play.golang.org/p/z-Yp4bh7jto On Friday, May 28, 2021 at 6:59:34 PM UTC+2 manlio@gmail.com wrote: > On Friday, May 28, 2021 at 6:26:46 PM UTC+2 sharathc...@gmail.com wrote: > >> QuoteToAscii converts non printable characters to \xd , but i literally >> want the

Re: [go-nuts] Json to CSV parsing with raw Data

2021-05-28 Thread Manlio Perillo
On Friday, May 28, 2021 at 6:26:46 PM UTC+2 sharathc...@gmail.com wrote: > QuoteToAscii converts non printable characters to \xd , but i literally > want the same value . > > QuoteToAscii will not produce the json compatible string or will not > escape string in true sense like > > Conversion

Re: [go-nuts] Json to CSV parsing with raw Data

2021-05-28 Thread sharath chandra
QuoteToAscii converts non printable characters to \xd , but i literally want the same value . QuoteToAscii will not produce the json compatible string or will not escape string in true sense like Conversion of "abc\u001d" will be converted to "abc\x1d" which is not compatible with json string

Re: [go-nuts] Json to CSV parsing with raw Data

2021-05-27 Thread Ian Lance Taylor
On Thu, May 27, 2021 at 9:48 AM sharath chandra wrote: > > The issue with Golang to retrieve raw data from Json / string variable > > ``` > I have a Json sample message something similar with special characters > > func main() { > msg := []byte(`{"key":"ABC\u001d\u263aDEF"}`) > m := make