R
rob
Hi,
I want to read data from wikipedia that are passed using a JSON
feed.The data in question have the following structure:
<api>
<query-continue>
<search sroffset="10" />
</query-continue>
<query>
<search>
<p ns="0" title="Wikipedia" />
<p ns="0" title="French Wikipedia" />
<p ns="0" title="German Wikipedia" />
<p ns="0" title="Criticism of Wikipedia" />
<p ns="0" title="2004" />
<p ns="0" title="2005" />
<p ns="0" title="Japanese Wikipedia" />
<p ns="0" title="Spanish Wikipedia" />
<p ns="0" title="History of Wikipedia" />
<p ns="0" title="2007" />
</search>
</query>
</api>
To read the data I use a callback function and am able to see that
there are objects inside (like below), but can't seem to find a way to
read all of their contents.
query=[object Object]
query-continue=[object Object]
I will appreciate any suggestions on how to read all contents of the
JSON feed.
Regards,
Rob
I want to read data from wikipedia that are passed using a JSON
feed.The data in question have the following structure:
<api>
<query-continue>
<search sroffset="10" />
</query-continue>
<query>
<search>
<p ns="0" title="Wikipedia" />
<p ns="0" title="French Wikipedia" />
<p ns="0" title="German Wikipedia" />
<p ns="0" title="Criticism of Wikipedia" />
<p ns="0" title="2004" />
<p ns="0" title="2005" />
<p ns="0" title="Japanese Wikipedia" />
<p ns="0" title="Spanish Wikipedia" />
<p ns="0" title="History of Wikipedia" />
<p ns="0" title="2007" />
</search>
</query>
</api>
To read the data I use a callback function and am able to see that
there are objects inside (like below), but can't seem to find a way to
read all of their contents.
query=[object Object]
query-continue=[object Object]
I will appreciate any suggestions on how to read all contents of the
JSON feed.
Regards,
Rob