I'm making a JSON-output API in Bottle, and I would like to pretty-print the JSON. Right now  if I write return json.dumps(data, indent=4, default=json_util.default), it still prints it without indents or newlines into my browser (but it does print correctly into my terminal).
My question is basically the Bottle version of this: Flask Display Json in a Neat Way
But I can't use the answer because (as far as I can tell) there is no jsonify function in Bottle. Is there an obvious solution, or should I try to reverse-engineer Flask's jsonify?
 
     
     
    