umbrae / jsonlintdotcom

Source code for jsonlint.com
http://www.jsonlint.com/
ISC License
403 stars 279 forks source link

JSON within URL gets not decoded #18

Closed cKlee closed 11 years ago

cKlee commented 11 years ago

In your example URL http://www.jsonlint.com/?json=%7B%22hello%22%3A%20%22world%22%7D the json gets not decoded. So validation fails.

umbrae commented 11 years ago

This is intended behavior, because your content is double encoded. If it were the following for example:

http://jsonlint.com/?json=%7B%22hello%22%3A%20%22world%22%7D

It would succeed.

cKlee commented 11 years ago

I was wondering why your link doesn't get encoded twice. We had nearly the same link. The I found out, that your URL does not contain the 'www'. And that ist the solution. It seems that the redirection does some encoding. Maybe you could change that in your FAQs.