Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 8298951
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 8, 20262026-06-08T15:58:17+00:00 2026-06-08T15:58:17+00:00

I need to test my REST API backend that accepts JSON with the Advanced

  • 0

I need to test my REST API backend that accepts JSON with the Advanced REST Client or Postman for Chrome.

But I am running into issues: I can only send the request using the built-in form and using Content-Type: application/x-www-form-urlencoded

But this will not work since I have embedded documennts, for example, I need to POST this:

{title:"Awesome post!", tags: ["blue", "jeans"] }

This is not possible with the built-in forms of either Chrome extension.

When I select Raw Body and insert the content there, my backend sees the req.body as being an empty object. When I also set the header “Content-Type: application/json”, I get the following error in my backend:

SyntaxError: Unexpected token n
at Object.parse (native)
at IncomingMessage.exports.parse.application/json (/Library/WebServer/Documents/slipfeed/node_modules/express/node_modules/connect/lib/middleware/bodyParser.js:135:16)
at IncomingMessage.EventEmitter.emit (events.js:85:17)
at IncomingMessage._emitEnd (http.js:366:10)
at HTTPParser.parserOnMessageComplete [as onMessageComplete] (http.js:149:23)
at Socket.socket.ondata (http.js:1682:22)
at TCP.onread (net.js:404:27)

Note: I am using bodyParser() and methodOverride() in my app’s configuration. Disableing them did not help.

What settings should I use so that I could just enter the JSON to the Raw body field and the request would work?

To clarify the answer: I had to set both Content-Type: application/json (in request header) and use well-formed json where property names are also inside double quotes to get it working.

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-08T15:58:20+00:00Added an answer on June 8, 2026 at 3:58 pm

    Try enclosing the field properties in quotes:
    {“title”:”Awesome post!”, “tags”: [“blue”, “jeans”] }

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I need to test web API functions in REST format. Currently using Selenium RC
I need to run a Python unittest test suite against multiple REST backend resources
I need to test my application. Its a VoIP but each time I need
I need to test, if an instance is exactly of a given type. But
I need to test a database user to see if that user has privileges
I have a Spring MVC and Resteasy based REST service that i need to
I have a char x[16] that I have not initialized, I need to test
I need to test a web form that takes a file upload. The filesize
I have a few REST Web Services I need to test and I am
I am new with liftweb and scala. I am developing json-rest api for rss

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.