diff --git a/net/server/json_rpc/src/dap_json_rpc.c b/net/server/json_rpc/src/dap_json_rpc.c
index b42d2bb9ed781b10733001028915105224975069..139e874cb41496121bea36a34b93dbaf8996f63c 100644
--- a/net/server/json_rpc/src/dap_json_rpc.c
+++ b/net/server/json_rpc/src/dap_json_rpc.c
@@ -145,7 +145,7 @@ void dap_json_rpc_http_proc(dap_http_simple_t *a_http_simple, void *a_arg)
         } else {
             json_object* l_json_obj_res = json_object_new_array();
             json_object_array_add(l_json_obj_res, json_object_new_string("Wrong request"));
-            const char * l_json_str_res = json_object_to_json_string(l_json_obj_res);
+            char *l_json_str_res = json_object_to_json_string(l_json_obj_res);
             enc_http_reply(l_dg, l_json_str_res, strlen(l_json_str_res));
             json_object_put(l_json_obj_res);
             DAP_DELETE(l_json_str_res);