Mathias Bynens 7/24/2013

Loading JSON-formatted data with Ajax and `xhr.responseType='json'`

Read Original

This technical article details a lesser-known feature of the XMLHttpRequest standard: setting `xhr.responseType='json'`. It compares traditional JSON-P and manual JSON parsing with Ajax, showing how this property automates parsing, leading to cleaner and more elegant code for web developers handling JSON APIs.

Loading JSON-formatted data with Ajax and `xhr.responseType='json'`

Comments

No comments yet

Be the first to share your thoughts!

Browser Extension

Get instant access to AllDevBlogs from your browser

Top of the Week

1
The Beautiful Web
Jens Oliver Meiert 2 votes
3
LLM Use in the Python Source Code
Miguel Grinberg 1 votes
4
Wagon’s algorithm in Python
John D. Cook 1 votes