If you send them as a json string then it wll make it easy. Change the code so that it sends something like this text {"a": 1, "h": 2, "t": 3, "n": 4}
Then in node red send it through a JSON node and it will convert it to a javascript object. Something like this might do it, but it is a long time since I used C(?) printf('{"a": %i, "h": %i, "t": %i, "n": %i}', A, H, T, N);
[Edit] That might need to be printf("{\"a\": %i, \"h\": %i, \"t\": %i, \"n\": %i}", A, H, T, N);