@hug.default_output_format()
def output_formatter(data):
 return hug.output_format.json(data)

@ hug . default_output_format ( ) def output_formatter ( data ) : return hug . output_format . json ( data )
for testing .