code: def process_result_value(
          self,
          value,  # type: typing.Union[str, typing.Any]
          dialect  # type: DefaultDialect
      ):  # type: (...) -> typing.Any
          
          if self.__use_json(dialect) or value is None:
              return value
  
          return self.__json_codec.loads(value)
docs: Decode data, if required.