48 JSON (de)serialization with circe
After reading this lesson, you will be able to
- Convert a data structure or Scala instance into JSON format
- Parse JSON data as Scala code
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 ...
Get Get Programming with Scala 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.