v4: Return mimetype='application/json' where appropriate