Fix URL link in json example.
Yahoo link does not exist any more.
Formatted json file.
Change-Id: I808290c42b633e74dfca896b4fd4124a6efd9dfe
(cherry picked from commit 17ec26cf37b90398c0872867eaa59f2930322676)
diff --git a/samples/json/src/com/google/gwt/sample/json/public/search-results.js b/samples/json/src/com/google/gwt/sample/json/public/search-results.js
index 157f0cf..5c7cf42 100644
--- a/samples/json/src/com/google/gwt/sample/json/public/search-results.js
+++ b/samples/json/src/com/google/gwt/sample/json/public/search-results.js
@@ -1 +1,41 @@
-{"ResultSet":{"totalResultsAvailable":"144429","totalResultsReturned":2,"firstResultPosition":1,"Result":[{"Title":"potato","Summary":"Webcam","Url":"http:\/\/www.1-language.com\/eslflashcards\/images\/potato.jpg","ClickUrl":"http:\/\/www.1-language.com\/eslflashcards\/images\/potato.jpg","RefererUrl":"http:\/\/eiko-chan.deviantart.com\/","FileSize":"22817","FileFormat":"jpeg","Height":"900","Width":"600","Thumbnail":{"Url":"http:\/\/scd.mm-c1.yimg.com\/image\/1139705266","Height":"140","Width":"93"}},{"Title":"potato","Summary":"des k\u00f6nnt doch PAP kartoffel sien L\u00d6\u00d6\u00d6LZ httpwwwengineeringuiowaeduhawkengfall01graphicspotatogif ","Url":"http:\/\/www.engineering.uiowa.edu\/~hawkeng\/fall01\/graphics\/potato.gif","ClickUrl":"http:\/\/www.engineering.uiowa.edu\/~hawkeng\/fall01\/graphics\/potato.gif","RefererUrl":"http:\/\/2485.forum.onetwomax.de\/topic=101384568836&startid=2","FileSize":"52390","FileFormat":"gif","Height":"407","Width":"338","Thumbnail":{"Url":"http:\/\/scd.mm-c1.yimg.com\/image\/1135881977","Height":"120","Width":"99"}}]}}
\ No newline at end of file
+{
+ "ResultSet":{
+ "totalResultsAvailable":"144429",
+ "totalResultsReturned":2,
+ "firstResultPosition":1,
+ "Result":[
+ {
+ "Title":"potato",
+ "Summary":"Webcam",
+ "Url":"http:\/\/www.1-language.com\/eslflashcards\/images\/potato.jpg",
+ "ClickUrl":"http:\/\/www.1-language.com\/eslflashcards\/images\/potato.jpg",
+ "RefererUrl":"http:\/\/eiko-chan.deviantart.com\/",
+ "FileSize":"22817",
+ "FileFormat":"jpeg",
+ "Height":"900",
+ "Width":"600",
+ "Thumbnail":{
+ "Url":"http:\/\/scd.mm-c1.yimg.com\/image\/1139705266",
+ "Height":"140",
+ "Width":"93"
+ }
+ },
+ {
+ "Title":"potato",
+ "Summary":"des k\u00f6nnt doch PAP kartoffel sien L\u00d6\u00d6\u00d6LZ httpwwwengineeringuiowaeduhawkengfall01graphicspotatogif ",
+ "Url":"http:\/\/www.engineering.uiowa.edu\/~hawkeng\/fall01\/graphics\/potato.gif",
+ "ClickUrl":"http:\/\/www.engineering.uiowa.edu\/~hawkeng\/fall01\/graphics\/potato.gif",
+ "RefererUrl":"http:\/\/2485.forum.onetwomax.de\/topic=101384568836&startid=2",
+ "FileSize":"52390",
+ "FileFormat":"gif",
+ "Height":"407",
+ "Width":"338",
+ "Thumbnail":{
+ "Url":"http:\/\/scd.mm-c1.yimg.com\/image\/1135881977",
+ "Height":"120",
+ "Width":"99"
+ }
+ }
+ ]
+ }
+}
diff --git a/samples/json/war/JSON.html b/samples/json/war/JSON.html
index 21c4d11..acc6a5c 100644
--- a/samples/json/war/JSON.html
+++ b/samples/json/war/JSON.html
@@ -47,8 +47,8 @@
<ul>
<li>For more details on how the JSON response is parsed into a set
of Java objects, see the JSONParser class.
- <li>The search URL used in this example was
- <a href='http://api.search.yahoo.com/ImageSearchService/V1/imageSearch?appid=YahooDemo&query=potato&results=2&output=json'>http://api.search.yahoo.com/ImageSearchService/V1/imageSearch?appid=YahooDemo&query=potato&results=2&output=json</a>.
+ <li>This is the
+ <a href='json/search-results.js'>JSON</a> file used in this example.
</ul>
<div id="search">