New output_json method outputs with application/json headers