json4s customized serialization