mholt / json-to-go

Translates JSON into a Go type in your browser instantly (original)
https://mholt.github.io/json-to-go/
MIT License
4.51k stars 475 forks source link

The "https://mholt.github.io/json-to-go/" show "Unexpected token" #13

Closed kkdai closed 9 years ago

kkdai commented 9 years ago

This web site help me a lot, please help. Thanks

mholt commented 9 years ago

That means your JSON input is malformed. Check it with http://jsonlint.com/.

Glad you find it helpful! :smile:

kkdai commented 9 years ago

Thanks, it seems my input include some special character when I copy from go http print. However http://jsonlint.com/ help a lot.

kkdai commented 9 years ago

I found the json input field is rich text, it might include formatter tag once I copy json from ex: https://dev.twitter.com/rest/reference/get/followers/list

mholt commented 9 years ago

Oh, that's possible... paste with Cmd+Shift+V (Ctrl+Shift+V on Windows) for plaintext.