code: def output_json(data, code, headers=None):
      '''Use Flask JSON to serialize'''
      resp = make_response(json.dumps(data), code)
      resp.headers.extend(headers or {})
      return resf output_json(data, code, headers=None):
      '''Use Flask JSON to serialize'''
      resp = make_response(json.dumps(data), code)
      resp.headers.extend(headers or {})
      return resp
docs: Use Flask JSON to serialize