400: "[object Object]" is not valid JSON

Hi Community,

I’m encountering an “Invalid JSON” error and am not sure why. Could someone help me figure out what I’m missing?

I want to achieve to add extra options to a custom field when the an option isn’t present.

Thanks!

Hi my friend,

Is your JSON valid ? You can use that kind of website to check : https://jsonlint.com/
It might also be the module Make an API call that is not well configure : it should be Content-Type : application/json
In the “Body” field, choose Raw, then Content Type field appears and choose application/json and then you put your JSON content in the field under.

Hope this helps !

Json is valid and the configuration is correct. When i copy paste directly in the Body it works. Only not in the scenario run

Fixed used other module:

2 Likes