Json marshalling and unmarshalling to and from case classes