© Frank M. Kromann 2016

Frank M. Kromann, PHP and MySQL Recipes, 10.1007/978-1-4842-0605-8_15

15. Data Exchange with JSON

Frank M. Kromann

(1)Trabuco Canyon, California, USA

Chapter 14 covered the use of XML to exchange date between a client and a server. When the client is created with JavaScript in a browser it’s much easier to exchange data with something called JSON. JSON is an acronym for JavaScript Object Notation. It is a sting-like notation that makes it easy to declare complex structures like arrays and object.

Recipe 15-1. Fetching Data with AJAX

Problem

Traditionally a browser is used to fetch HTML pages from a server. Navigation to a different page on the same or different server is done with links in the HTML document. When a user clicks ...

Get PHP and MySQL Recipes: A Problem-Solution Approach, Second Edition now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.