jinja_util.py 131 B

12345678
  1. # -*- coding: utf-8 -*-
  2. import json
  3. def change_to_json(data):
  4. return json.dumps(data, encoding="UTF-8", ensure_ascii=False)