When making https request to a groq model its giving me invalid json parameters,help asap


this is my workflow i am having problem in this node https, where i am asking groq llm to answer a query which i am sending through webhook by searching in the document which i have extracted,

it give me this

and this is my json body {
“model”: “qwen/qwen3-32b”,
“messages”: [
{
“role”: “system”,
“content”: “You are a helpful assistant.”
},
{
“role”: “user”,
“content”: “{{ $json.prompt }}”
}
]
}
but when i passing simple prompt like explain me about world war 2 its giving me answer perfectly but when i am using query and document from previous node it gives me invalid json paramters i have been stuck on this since 2 days, please help me out.