<div dir="ltr">I am trying to retrieve json body from http response (below code) but ast_http_get_json method expects ast_variable which is probably list of headers. so question is how to I get this from client (or client->ser). Suggestions most welcome !<div><br></div><div>res_http_websocket.c -> websocket_client_handshake_get_response()</div><div><br></div><div><div><span class="" style="white-space:pre"> </span>struct ast_variable temp;</div><div><span class="" style="white-space:pre">  </span>struct ast_json *body = ast_http_get_json(client->ser, &temp);</div><div><span class="" style="white-space:pre">      </span>ast_log(LOG_ERROR, "After get json");</div><div><span class="" style="white-space:pre">    </span>struct ast_json *field = ast_json_object_get(body, "sid");</div><div><span class="" style="white-space:pre">       </span>ast_log(LOG_ERROR, "After get sid");</div><div><span class="" style="white-space:pre">     </span>if (field) {</div><div><span class="" style="white-space:pre">               </span>ast_log(LOG_ERROR, "received sid=%s",ast_json_string_get(field));</div><div><span class="" style="white-space:pre">        </span>}</div></div><div><br></div><div><br></div><div>thanks,</div></div>