【发布时间】:2021-08-02 13:05:23
【问题描述】:
我将一个 json 对象发送到 web 服务,我正在尝试按如下方式获取该 json 对象:
@app.route("/insecticidesSpecifications/<string:parameters>", methods=['GET'] )
def insecticidesSpecifications(parameters):
logger.debug(make_response(parameters,200).get_data)
结果如下图。我看不到 json 对象的内容。 请告诉我如何正确获取 json 对象的内容。
输出:
INFO:werkzeug: - - [02/Aug/2021 14:59:16] "OPTIONS /insecticidesSpecifications/[object%20Object] HTTP/1.1" 200 -
DEBUG:root:<bound method BaseResponse.get_data of <Response 15 bytes [200 OK]>>
INFO:werkzeug: - - [02/Aug/2021 14:59:16] "GET /insecticidesSpecifications/[object%20Object] HTTP/1.1" 200 -
【问题讨论】: