A simple example with Scala and Json (play-json). But this library gets too many dependencies. FInd one with lesser dependencies.