List Info

Thread: JSON format WebSearch results formats integers as strings




JSON format WebSearch results formats integers as strings
user name
2006-06-23 05:03:31

Take the following request:

http://api.search.yahoo.com/WebSearchService/V1/webSearch?appid=YahooDemo&query=madonna&results=2&output=json

In the results, you'll see the following:

"totalResultsAvailable":";33900000",
"totalResultsReturned":2,"firstResultPosition":1

The totalResultsAvailable is supposed to be a number, so why is the
search service returning it as a string? (note that neither
totalResultsReturned nor firstResultPosition are returned as strings).

Ryan

__._,_.___
.

__,_._,___
[1]

about | contact  Other archives ( Real Estate discussion Medical topics )