--- a/ui/server/window.c Wed Dec 10 21:22:57 2025 +0100 +++ b/ui/server/window.c Wed Dec 10 22:22:55 2025 +0100 @@ -80,16 +80,16 @@ cxmutstr obj_id = w->widget.obj->id; cxmutstr id = w->widget.id; - cxBufferPutString(&buf, " obj_id=\""); + cxBufferPutString(&buf, ", \"obj\":\""); cxBufferWrite(obj_id.ptr, 1, obj_id.length, &buf); - cxBufferPutString(&buf, "\""); + cxBufferPutString(&buf, "\","); - cxBufferPutString(&buf, " id=\""); + cxBufferPutString(&buf, " \"id\":\""); cxBufferWrite(id.ptr, 1, id.length, &buf); - cxBufferPutString(&buf, "\""); + cxBufferPutString(&buf, "\", "); if(w->title.ptr) { - cxBufferPutString(&buf, " title=\""); + cxBufferPutString(&buf, " \"title\":\""); cxBufferWrite(w->title.ptr, 1, w->title.length, &buf); cxBufferPutString(&buf, "\""); }