Getting the following error while sending json request : There was an error in evaluating the test script: SyntaxError: Unexpected token ':'

Hello,

I am new to using the postman.
While posting the payment, with below json request, I am getting the following error.

There was an error in evaluating the test script: SyntaxError: Unexpected token ':'

Not sure what I am doing wrong. I have checked the syntax and “:” (semicolons) are seemed to be correctly placed.
Can someone please help me understand what could be the mistake in here?

Thanks in Advance.

Hi @reluctantcoder

From the screenshot, it appears you have pasted your JSON into the test tab. Try putting it in the “Body” tab instead and then selecting JSON from the list;

@w4dd325
Thank you for your response.
I tried what you suggested. Now it is showing some error message related to date I sent that i can work with.

Thanks and Regards,

1 Like

Post a screenshot if you get stuck, happy to try and help.