Setting output formatter for the API