Sign in to follow this  
Followers 0
Chikwado

Need some cue

2 posts in this topic

Just like we use ajax to navigate XML, Then, Is it possible to navigate JSON as well? Example of the xml are here

Share this post


Link to post
Share on other sites

AJAX doesn't read XML data, it just downloads the XML document from the server.

XML is read using the XML DOM.

 

JSON is just a Javascript object (JavaScript Object Notation), reading it is as simple as reading the properties of the Javascript object it returns.

Learn about objects here: https://www.w3schools.com/js/js_objects.asp

 

Sometimes JSON is given as a string, you can use JSON.parse() to turn a string into an object.

Share this post


Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!


Register a new account

Sign in

Already have an account? Sign in here.


Sign In Now
Sign in to follow this  
Followers 0