如何检索单独的字段值?

时间:2019-12-06 10:27:24

标签: rest-assured rest-assured-jsonpath

数组中的Hi响应主体。现在如何检索单独的字段值?例如需要打印订单状态给我一些建议

[{"OrderDetails":
        {"avg_price":"0.000000","cum_qty":"0","exec_id":"0",
        "exec_price":"0.000000","exec_qty":"0","exec_trans_type":"3",
        "exec_type":"0","filler":"0","leaves_qty":"300",
        "order":{"clearing_cli":{"acct":"0000075","client_id":"PSPL"},
        "clordid":"QA201912061809110922","command_id":"1912060000120","" +
        "contingency_type":"0","dealer_action":" ","deliver_to_id":"990",
        "deliver_to_id_drop_copy":"0","dist_to_market":"0.000000",
        "expiry_date":"20191209","filler":"0","handl_inst":"1",
        "in_broker":"GMOCQ2","instr":{"exchange":"SGX","instrument":"S68",
        "market_type":"R","product":"ES"},"omnibus_acct":"0000075",
        "on_behalf_of_id":"19091","order_no":"O9611912060000114",
        "order_price":"7.550000","order_time":"20191206-10:09:25.583",
        "order_type":"2","out_broker":"SG-20","prev_price":"0.000000",
        "prev_qty":"0","qty":"300","replace_price":"0.000000",
        "replace_qty":"0","secondary_order_id":"191206005803280",
        "sender_id":"950","show_qty":"300","side":"1",
        "submit_trader":"0000000","target_id":"990","target_id_drop_copy":"0",
        "trading_cli":{"acct":"0000075","client_id":"PSPL"},"trading_curr":"SGD",
        "trailing_step":"0.000000","trigger_price":"0.000000"},"ordstatus":"0",
        "price_dec":"3","rej_code":"0","trading_session_id":"SGX_ES",
        "transaction_time":"20191206-10:09:28.889"},
        "OrderNo":"O9611912060000114"}]

0 个答案:

没有答案