Closed zplzpl closed 8 years ago
str := {"project":"xx","event":"aa","params":[{"page_id":"72","title":"\u65e5","path":"/","url":"http:\/ \/www.github.com"}],"create_time":"1456133265"}
{"project":"xx","event":"aa","params":[{"page_id":"72","title":"\u65e5","path":"/","url":"http:\/ \/www.github.com"}],"create_time":"1456133265"}
result, err := simplejson.NewJson([]byte(str))
err == invalid character '\n' in string literal
oh.I wrong.
str :=
{"project":"xx","event":"aa","params":[{"page_id":"72","title":"\u65e5","path":"/","url":"http:\/ \/www.github.com"}],"create_time":"1456133265"}
result, err := simplejson.NewJson([]byte(str))
err == invalid character '\n' in string literal