Is there a way to force function to return a minified json?

The model seemed not to know what is “minified”, so most of the times it just spits random formats, sometimes with indents, sometimes don’t.