switch to json serializer