Use custom json serialization