2014년 12월 1일 월요일

HtmlTextDecode does not show JSON response?

I thought HtmlTextDecode decodes the the text of the webpage?  The text of the following example is a json response. If I am wrong I apologize.

http://ai2.appinventor.mit.edu/reference/components/connectivity.html

How can I decode
https://maps.googleapis.com/maps/api/place/nearbysearch/json?location=41.455318,-75.651009&radius=500&types=store&key=

to a json response for my app. Right now  I have this:



The json response WILL vary, so I need to decode the webpage into json. How could I do this?



it helps to take a look into the documentation

text HtmlTextDecode(text htmlText)
Decodes the given HTML text value. HTML character entities such as &amp;, &lt;, &gt;, &apos;, and &quot; are changed to &, <, >, ', and ". Entities such as &#xhhhh, and &#nnnn are changed to the appropriate characters.

How can I decode
https://maps.googleapis.com/maps/api/place/nearbysearch/json?location=41.455318,-75.651009&radius=500&types=store&key=to a json response for my app

How would you expect the JSON result look like?
You will have to do this manually...



Try using JsonTextDecode and see if that does what you need.


댓글 없음:

댓글 쓰기