Flat json problem (api astrology failed request)

Hello
How I can solve this bad problem !
I have this curl json from Api Astrology
Everything is working VeryWell if I don’t add the (Config) but if I add the config … web request = bad request body !
{
“year”: 1998,
“month”: 3,
“date”: 3,
“hours”: 10,
“minutes”: 30,
“seconds”: 0,
“latitude”: 17.38405,
“longitude”: 78.45636,
“timezone”: 5.5,
“config”: {
“observation_point”: “topocentric”, /* geocentric or topocentric /
“ayanamsha”: “tropical”, /
tropical or sayana or lahiri /
“house_system”: “Placidus”, /
“Placidus”,“Koch”,“Whole Signs”,“Equal Houses”,“Regiomontanus”,“Vehlow” */
“language”: “en”,
}
}

According to chat gpt:
That’s mean there is no problem with flat json in web component but if I add nested json(config containt other data … not like birth data)

But i have tried all solutions and not working…(like webhook using app script… json extension.. custom webview)

kodular show this problem:
message: invalid request body

if i remove the comfig..working
but i need config

Remove the comments…
These start with /* and end with */
Check for valid json here

This would be a correct config:

“config”: {
“observation_point”: “topocentric”,
“ayanamsha”: “tropical”,
“house_system”: “Placidus”,
“language”: “en”
}

Taifun

1 Like

Great! thank you Taifun