code: def json_convert(*kinds):
      
      def register_json_converter(function):
          for kind in kinds:
              json_converters[kind] = function
          return function
      return register_json_converter
docs: Registers the wrapped method as a JSON converter for the provided types.
  
      NOTE: custom converters are always globally applied