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

**URL:** <https://community.postman.com/t/getting-the-following-error-while-sending-json-request-there-was-an-error-in-evaluating-the-test-script-syntaxerror-unexpected-token/35591>\
**Category:** Help Hub\
**Created:** [May 24, 2022, 3:42am UTC](https://community.postman.com/t/getting-the-following-error-while-sending-json-request-there-was-an-error-in-evaluating-the-test-script-syntaxerror-unexpected-token/35591 "2022-05-24T03:42:04Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![reluctantcoder](https://avatars.discourse-cdn.com/v4/letter/r/9de0a6/32.png) [@reluctantcoder](https://community.postman.com/u/reluctantcoder)\
**Post date:** [May 24, 2022, 3:42am UTC](https://community.postman.com/t/getting-the-following-error-while-sending-json-request-there-was-an-error-in-evaluating-the-test-script-syntaxerror-unexpected-token/35591/1 "2022-05-24T03:42:04Z")

</div>

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 ‘:’**

 ![image](https://us1.discourse-cdn.com/getpostman/original/2X/0/06692008a71efc40d595f50d9303f1363d07add0.png)

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.

---

<div class="post-metadata">

**Author:** ![w4dd325](https://sea2.discourse-cdn.com/getpostman/user_avatar/community.postman.com/w4dd325/32/12436_2.png) [@w4dd325](https://community.postman.com/u/w4dd325)\
**Post date:** [May 24, 2022, 8:48am UTC](https://community.postman.com/t/getting-the-following-error-while-sending-json-request-there-was-an-error-in-evaluating-the-test-script-syntaxerror-unexpected-token/35591/2 "2022-05-24T08:48:35Z")

</div>

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;

 ![image](https://us1.discourse-cdn.com/getpostman/original/2X/c/cac18ab4337de524452d1d99433e17b132f6caf1.png)

---

<div class="post-metadata">

**Author:** ![reluctantcoder](https://avatars.discourse-cdn.com/v4/letter/r/9de0a6/32.png) [@reluctantcoder](https://community.postman.com/u/reluctantcoder)\
**Post date:** [May 24, 2022, 4:12pm UTC](https://community.postman.com/t/getting-the-following-error-while-sending-json-request-there-was-an-error-in-evaluating-the-test-script-syntaxerror-unexpected-token/35591/3 "2022-05-24T16:12:41Z")

</div>

@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,

---

<div class="post-metadata">

**Author:** ![w4dd325](https://sea2.discourse-cdn.com/getpostman/user_avatar/community.postman.com/w4dd325/32/12436_2.png) [@w4dd325](https://community.postman.com/u/w4dd325)\
**Post date:** [May 24, 2022, 4:17pm UTC](https://community.postman.com/t/getting-the-following-error-while-sending-json-request-there-was-an-error-in-evaluating-the-test-script-syntaxerror-unexpected-token/35591/4 "2022-05-24T16:17:02Z")

</div>

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