jquery的ajax默认使用application/x-www-form-urlencoded, 只能
通过requet.form.get('xxxx')
若想使用 data = request.get_json()需要设置contentType
$.ajax({
type: 'POST',
url: '/sql_lab/execute_sql',
data: JSON.stringify( {sql: editor.getValue(), strategy: 'render_json', database: $('#database-picker').val()}),
dataType: "json",
contentType: "application/json; charset=utf-8",
})