Chat GPT API 400 error

Please what’s is probably wrong when my app pops this up?

Screenshot (58)ff

Your JSON isn’t formatted correctly.

Please can you tell me what’s wrong with it. I can’t seem to figure it out?

Show what you’re filling the <messages> variable with

I don’t understand that. Can you expand more?

Sorry for the late reply