This chapter will show you how to use the more common encoding for exchanging data in an application. Encoding is the process of transforming data, and it can be used when an application has to communicate with another—using the same encoding will allow the two programs to understand each other. This chapter will explain how to handle text-based protocols such as JSON, first of all, and then how to use binary protocols such as gob.
The following topics will be covered in this chapter:
- Using text-based encoding such as JSON and XML
- Learning about binary encoding such as gob and protobuf