Hi,

This definitely help.
Problem solved.

W dniu poniedziałek, 3 października 2016 19:40:06 UTC+2 użytkownik 刘湃 
napisał:
>
> Try this https://play.golang.org/p/54Utd1Vsw3
>
> https://godoc.org/encoding/json#Marshal
>
> String values encode as JSON strings coerced to valid UTF-8, replacing 
> invalid bytes with the Unicode replacement rune. The angle brackets "<" and 
> ">" are escaped to "\u003c" and "\u003e" to keep some browsers from 
> misinterpreting JSON output as HTML. Ampersand "&" is also escaped to 
> "\u0026" for the same reason. This escaping can be disabled using an 
> Encoder with DisableHTMLEscaping.
>
> Marcin Jurczuk於 2016年10月3日星期一 UTC+8下午5時16分30秒寫道:
>>
>> Hi,
>>
>> I hit some issue with son.Marshal string parsing and I don't know is it 
>> package error or "this is not a bug - it's a feature".
>>
>> Here is code that doesn't work like expected:
>> https://play.golang.org/p/vAOhLCtoSh
>>
>>
>> Why I'm getting \u003c\u003 instead of << when printing printing out 
>> json ??
>>
>>

-- 
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 [email protected].
For more options, visit https://groups.google.com/d/optout.

Reply via email to