simplified case class to json conversion