split out scala/json4s helpers