Basic typeclasses. Make your own JSON serializer.