3 ms·
JSON in URL: /log?%7B%22a%22:%22b%22,%22c%22:4%7D You are debugging and need to quickly identify the values you are passing to the API. Better have a JSON pars
by hashberry 12y ago
JSON in URL: /log?%7B%22a%22:%22b%22,%22c%22:4%7D
You are debugging and need to quickly identify the values you are passing to the API. Better have a JSON parser handy.
- emodendroket 12y agoThis is already a problem if you ever have to work with non-ASCII characters. Check out a URL to a page in the Japanese Wikipedia, for instance.
- hashberry 12y agohttp://ja.wikipedia.org/wiki/ベーカーストリート・アンド・ウォータールー鉄道 http://ja.wikipedia.org/wiki/ベーカーストリート・アンド・ウォータールー鉄道
- emodendroket 12y agoOr, as it shows up for me, http://ja.wikipedia.org/wiki/%E3%83%99%E3%83%BC%E3%82%AB%E3%83%BC%E3%82%B9%E3%83%88%E3%83%AA%E3%83%BC%E3%83%88%E3%83%BB%E3%82%A2%E3%83%B3%E3%83%89%E3%83%BB%E3%82%A6%E3%82%A9%E3%83%BC%E3%82%BF%E3%83%BC%E3%83%AB%E3%83%BC%E9%89%84%E9%81%93 http://ja.wikipedia.org/wiki/%E3%83%99%E3%83%BC%E3%82%AB%E3%...
- lacksconfidence 12y agoAhh but that is not the value that is sent to the webserver, that is just your web browser prettying up the display. If we open the inspector and see what was sent we have: Request URL:https://ja.wikipedia.org/wiki/%E3%83%99%E3%83%BC%E3%82%AB%E3%83%BC%E3%82%B9%E3%83%88%E3%83%AA%E3%83%BC%E3%83%88%E3%83%BB%E3%82%A2%E3%83%B3%E3%83%89%E3%83%BB%E3%82%A6%E3%82%A9%E3%83%BC%E3%82%BF%E3%83%BC%E3%83%AB%E3%83%BC%E9%89%84%E9%81%93 https://ja.wikipedia.org/wiki/%E3%83%99%E3%83%BC%E3%82%AB%E3... Your browser will equally pretty up the json in the url for display purposes.