Replace debug_print with to_json

to_json and cJSON_Print are now used when displaying debug information.

The main reason for this change it to support sending objects over DAP.
This commit is contained in:
Nunuhara Cabbage
2023-05-14 20:12:34 -07:00
parent 535a1f1804
commit 7392d74efe
20 changed files with 663 additions and 468 deletions
+1 -1
View File
@@ -77,7 +77,7 @@ static void send_response(cJSON *response, bool success)
send_json(response);
}
static void emit_event(const char *name, struct cJSON *body)
static void emit_event(const char *name, cJSON *body)
{
cJSON *event = cJSON_CreateObject();
cJSON_AddStringToObject(event, "type", "event");