In this chapter, we will focus on the data structures and payloads of web services. You will learn how to properly use content types and content negotiation for your web services, how to use the new JSON-B APIs for easy data binding, how JSON-P API can be used for very flexible JSON processing, and how it can be used to implement hypermedia-driven REST APIs.
The following topics will be covered in this chapter:
- Introduction to content types and content negotiation
- Easy data binding using JSON-B
- Flexible JSON processing with JSON-P
- Implementing hypermedia-driven REST APIs