You learned about asynchronous computations in the previous unit. In this lesson, you are going to learn about working with JSON in Scala. Scala doesn’t offer JSON support natively, so you’ll use circe, a popular library to work with JSON in Scala. JSON stands for “JavaScript Object Notation” and is a commonly used lightweight format to exchange straightforward data for humans to read and for machines to parse. You’ll see how to represent data in JSON format. You can refer to this process as serialization. You’ll also discover the inverse operation of defining a Scala instance by parsing a JSON structure, called deserialization. Figure 48.1 provides a visual comparison between the processes of JSON serialization and deserialization.
Figure 48.1 The process of serialization allows you to represent a Scala instance in JSON format. Its inverse is deserialization, which allows you to parse data in JSON format into a Scala instance.
