Chikwado Posted March 7, 2017 Share Posted March 7, 2017 Just like we use ajax to navigate XML, Then, Is it possible to navigate JSON as well? Example of the xml are here Link to comment Share on other sites More sharing options...
Ingolme Posted March 7, 2017 Share Posted March 7, 2017 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. Link to comment Share on other sites More sharing options...
Recommended Posts
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 accountSign in
Already have an account? Sign in here.
Sign In Now