From the course: Hands-On Introduction: Scala

Unlock the full course today

Join today to access over 24,700 courses taught by industry experts.

JSON implementation

JSON implementation

- [Instructor] Let's create a final implementation of our ETL that parses a JSON file. We're going to use the Circe library, a popular JSON parsing library in the Scala world. Let's import the Circe dependency into our project. So I'm going to copy and paste this from the documentation. I'll pop it here. So we've got a, because there are a few dependencies, they've used a val for the version, so I'll just pop that up here. Typically in Scala projects, they would have a file called dependencies, and that's where they would put all their library dependencies. But in this case, I haven't done that, because we've only got a few dependencies. So I didn't think there was a need for an extra file. So let's add the version to this, and then I'll just delete this code that we copy-pasted. Now, let's use metals to import the build, now, that we've changed the build file, fantastic. We've got our Circe dependency. Now, that…

Contents