def json_convert(*kinds):
 def register_json_converter(function):
  for kind in kinds:
   json_converters[kind] = function
  return function
 return register_json_converter

def json_convert ( * kinds ) : def register_json_converter ( function ) : for kind in kinds : json_converters [ kind ] = function return function return register_json_converter
registers the wrapped method as a json converter for the provided types .