flask 模板 传参 转json格式方法

let depts = JSON.parse('{{mdepts|tojson|safe}}');