+}
+
+struct json_object *ws_reply_get_content(struct json_object *rp)
+{
+ return json_object_object_get(rp, "content");
+}
+
+struct json_object *ws_execute(struct json_object *rq)
+{
+ struct json_object *rp, *content;
+
+ rp = http_json_get(session_url, rq);
+
+ if (rp) {
+ content = ws_reply_get_content(rp);
+
+ if (content && !json_object_object_get(rp, "error")) {
+ json_object_get(content);
+ json_object_put(rp);
+ return content;
+ }