@hug.default_output_format(apply_globally=True)
def output_formatter_global(data):
 return hug.output_format.json(data)

@ hug . default_output_format ( apply_globally = True ) def output_formatter_global ( data ) : return hug . output_format . json ( data )
for testing .