It might be a good idea to use Json objects and the utilities of Play to convert json to objects and back