I've got a use case where I'm projecting new json objects out of old json objects. Let's say I've got json that looks like this (this is a very oversimplified case):
val people = "{ people: [{ id: 1, name: \"Corey\"}, {id: 2, name: \"Jon\"}], ...}"
What I'd like to do is directly pull objects of type Json out of one object and add them to another.
val json = Json.parse(people)
val newJson = JsonBuffer.parse("{}")
newJson += people.people
This could be because I'm using an old version of Rapture-json (0.9.0) but this is throwing an exception saying JSON cannot be serialized to Json.
Obviously my usecase is much more complex than that. We're doing many many many more complex transformations from the input json to the output json but you get the gist of what Im trying to acheive.