WHAT’S IN THIS CHAPTER?
- Understanding JSON syntax
- JSON parsing
- JSON serialization
There was a time when XML was the de facto standard for transmitting structured data over the Internet. The first iteration of web services was largely XML-based, highlighting its target of server-to-server communication. XML was not, however, without its detractors. Some believed that the language was overly verbose and redundant. Several solutions arose to counter these problems, but the Web had already started moving in a new direction.
JSON syntax allows the representation of three types of values: