The code in this blog post shows how to convert a Seq
of Scala objects to their equivalent JSON representation. Specifically, I’m working on an application to display Twitter data, and I want to convert a Seq[Tweet]
to its JSON.
The goal
My goal in the following code is to return some JSON that looks like this: