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:
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
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
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
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