I'm looking for a native Scala solution to change this:
{"name":"jack","greeting":"hello world"}
into this:
<person>
<name>jack</name>
<greeting>hello world</name>
</person>
and back again (XML back to JSON).
I realize that there are Java libraries out there that I can use to help me, but this should be a simple problem, and in an effort to better understand Scala and functional programming, I would really love to see how to do this with plain Scala.
Similar questions have been asked for many other languages on StackOverflow, so having an equal in Scala would make the reference more complete.