Use upickle to JSONify case classes