def get_characters(): args = request.args res = C.get_characters_by_query(args) rsp = Response(process_got_json.dumps(res), status=200, content_type="application/json") return rsp
def get_characters(): args = dict(request.args) args = _de_array_args(args) res = C.get_characters_by_query(args) rsp = Response(json.dumps(res), status=200, content_type="application/json") return rsp
def t1(): q1 = {"characterName": "Rickard Karstark"} res = C.get_characters_by_query(q1) print("Res = ", json.dumps(res, indent=3))