Adding JSON and XML serializers