Convert a collection into a JSON

Hi all,

I am trying to build an AI agent to introduce all my dietary findings during the day, basically three things, day summary, food ingestion and stomach syntoms. I have done this with Librechat + Claude 3.5 haiku. And it works well.

After this a request LibreChat to send a JSON to Make (a webhook) and here is where the issue appears. for some reason, the JSON is only sent as a string not as an object, I have tried to modify it with no luck, so we must assume it will be this way. here is an example of the JSON sent:

{ "input": "{\n \"tipo_registro\": \"comida\",\n \"fecha\": \"\",\n \"hora\": \"21:00\",\n \"tipo_comida\": \"cena\",\n \"alimentos\": \"arandanos\",\n \"lactosa\": \"No\",\n \"gluten\": \"No\", \n \"agua_ml\": 500,\n \"notas\": \"\"\n}" }

But it is received by the webhook as a collection of letters:

[
{
“0”: “{”,
“1”: “\n”,
“2”: " “,
“3”: " “,
“4”: “\””,
“5”: “t”,
“6”: “i”,
“7”: “p”,
“8”: “o”,
“9”: “_”,
“10”: “r”,
“11”: “e”,
“12”: “g”,
“13”: “i”,
“14”: “s”,
“15”: “t”,
“16”: “r”,
“17”: “o”,
“18”: “\””,
“19”: “:”,
“20”: " “,
“21”: “\””,
“22”: “c”,
“23”: “o”,
“24”: “m”,
“25”: “i”,
“26”: “d”,
“27”: “a”,
“28”: “\”“,
“29”: “,”,
“30”: “\n”,
“31”: " “,
“32”: " “,
“33”: “\””,
“34”: “f”,
“35”: “e”,
“36”: “c”,
“37”: “h”,
“38”: “a”,
“39”: “\””,
“40”: “:”,
“41”: " “,
“42”: “\””,
“43”: “\””,
“44”: “,”,
“45”: “\n”,
“46”: " “,
“47”: " “,
“48”: “\””,
“49”: “h”,
“50”: “o”,
“51”: “r”,
“52”: “a”,
“53”: “\””,
“54”: “:”,
“55”: " “,
“56”: “\””,
“57”: “2”,
“58”: “1”,
“59”: “:”,
“60”: “0”,
“61”: “0”,
“62”: “\”“,
“63”: “,”,
“64”: “\n”,
“65”: " “,
“66”: " “,
“67”: “\””,
“68”: “t”,
“69”: “i”,
“70”: “p”,
“71”: “o”,
“72”: “_”,
“73”: “c”,
“74”: “o”,
“75”: “m”,
“76”: “i”,
“77”: “d”,
“78”: “a”,
“79”: “\””,
“80”: “:”,
“81”: " “,
“82”: “\””,
“83”: “c”,
“84”: “e”,
“85”: “n”,
“86”: “a”,
“87”: “\””,
“88”: “,”,
“89”: “\n”,
“90”: " “,
“91”: " “,
“92”: “\””,
“93”: “a”,
“94”: “l”,
“95”: “i”,
“96”: “m”,
“97”: “e”,
“98”: “n”,
“99”: “t”,
“100”: “o”,
“101”: “s”,
“102”: “\””,
“103”: “:”,
“104”: " “,
“105”: “\””,
“106”: “a”,
“107”: “r”,
“108”: “a”,
“109”: “n”,
“110”: “d”,
“111”: “a”,
“112”: “n”,
“113”: “o”,
“114”: “s”,
“115”: “\”“,
“116”: “,”,
“117”: “\n”,
“118”: " “,
“119”: " “,
“120”: “\””,
“121”: “l”,
“122”: “a”,
“123”: “c”,
“124”: “t”,
“125”: “o”,
“126”: “s”,
“127”: “a”,
“128”: “\””,
“129”: “:”,
“130”: " “,
“131”: “\””,
“132”: “N”,
“133”: “o”,
“134”: “\””,
“135”: “,”,
“136”: “\n”,
“137”: " “,
“138”: " “,
“139”: “\””,
“140”: “g”,
“141”: “l”,
“142”: “u”,
“143”: “t”,
“144”: “e”,
“145”: “n”,
“146”: “\””,
“147”: “:”,
“148”: " “,
“149”: “\””,
“150”: “N”,
“151”: “o”,
“152”: “\”",
“153”: “,”,
“154”: " ",
“155”: “\n”,
“156”: " “,
“157”: " “,
“158”: “\””,
“159”: “a”,
“160”: “g”,
“161”: “u”,
“162”: “a”,
“163”: “_”,
“164”: “m”,
“165”: “l”,
“166”: “\””,
“167”: “:”,
“168”: " “,
“169”: “5”,
“170”: “0”,
“171”: “0”,
“172”: “,”,
“173”: “\n”,
“174”: " “,
“175”: " “,
“176”: “\””,
“177”: “n”,
“178”: “o”,
“179”: “t”,
“180”: “a”,
“181”: “s”,
“182”: “\””,
“183”: “:”,
“184”: " “,
“185”: “\””,
“186”: “\””,
“187”: “\n”,
“188”: “}”
}
]

I have tried several options like compose a string, set a variable or parse a JSON, the issue is that the webhook has a variable lenght and I cannot set something like webhook.value or webhook.raw data to always include all the content of the collection independently of the lenght.

Any ideas on this, I am a little bit blocked here.

Thank you!!