I'm using lift-json to deserialize simple objects from a POST request. Example:
{"id": "35", "name": "My topic", "slug": "my-slug", "imageUrl": "http://foo.bar/image.png"}
class definition:
class Topic(var id: Option[Long], var name: String, val slug: String, val imageUrl: String)
Then I use
read[Topic](jsonString)
Is it possible to get json-lift to read the id as a Long automatically?