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