I am looking for a native Scala solution to change this:
{"name":"jack","greeting":"hello world"}
in it:
<person> <name>jack</name> <greeting>hello world</name> </person>
and back (XML back to JSON).
I understand that there are Java libraries that I can use to help me, but this should be a simple problem, and in order to better understand Scala and functional programming, I would be very pleased to see how to do this with regular Scala.
Similar questions were asked for many other languages ββin StackOverflow, so having equal in Scala will make the link more complete.
source share