title: JMeter doesnt pass http post request sampler body data as json
body: <p>I am using JMeter and i am currently facing this issue. </p>
  
  <p>I want to perform a POST request to an API function but somehow when it gets sent to the call, my body data doesnt send in JSON format. </p>
  
  <p>This is the body data sent</p>
  
  <pre><code>{
      "project_id": "2",
      "name": "Jaya Jadon",
      "phone": "0123456789",
      "email": "email@email.com",
      "remarks": "",
      "co_applicants":[
          {
              "name": "Wongg Feig Uncle",
              "phone": "0123476798",
              "email": "unclee@weie.com"
          },
          {
              "name": "Wineg Feie Father",
              "phone": "0123496897",
              "email": "fatheer@weie.com"
          }
      ],
      "documents": [
          {
              "booking_form": "",
              "consent_form": [   
                  "https://www.jjj.com/CF1.jpg"
              ],
              "ic_passport_no":[
                  "https://www.jjj.com/IC1.jpg"
              ],
              "additional": ""
          }
      ]
  }
  </code></pre>
  
  <p>But this is what gets sent to when the POST request is sent</p>
  
  <pre><code>{
      "{\r\n\t\"project_id\"" =&gt; "&gt;\"2\",\r\n\t\"name\"=&gt;\"Jaya Jadon\",\r\n\t\"phone\"=&gt;\"0123456789\",\r\n\t\"email\": \"email@email.com\",\r\n\t\"remarks\": \"\",\r\n\t\"co_applicants\":[\r\n\t\t{\r\n\t\t\t\"name\": \"Wongg Feig Uncle\",\r\n\t\t\t\"phone\": \"0123476798\",\r\n\t\t\t\"email\": \"unclee@weie.com\"\r\n\t\t},\r\n\t\t{\r\n\t\t\t\"name\": \"Wineg Feie Father\",\r\n\t\t\t\"phone\": \"0123496897\",\r\n\t\t\t\"email\": \"fatheer@weie.com\"\r\n\t\t}\r\n\t],\r\n\t\"documents\": [\r\n\t\t{\r\n\t\t\t\"booking_form\": \"\",\r\n\t\t\t\"consent_form\": [\t\r\n\t\t\t\t\"https://www.jjj.com/CF1.jpg\"\r\n\t\t\t],\r\n\t\t\t\"ic_passport_no\":[\r\n\t\t\t\t\"https://www.jjj.com/IC1.jpg\"\r\n\t\t\t],\r\n\t\t\t\"additional\": \"\"\r\n\t\t}\r\n\t]\r\n}",
                     "format" =&gt; "json",
                 "controller" =&gt; "v1/lp_developer_referrals",
                     "action" =&gt; "create"
  }
  </code></pre>
  
  <p>And this is what I am expecting to get </p>
  
  <pre><code>{
         "project_id" =&gt; "2",
               "name" =&gt; "Jaya Jadon",
              "phone" =&gt; "0123456789",
              "email" =&gt; "email@email.com",
            "remarks" =&gt; nil,
      "co_applicants" =&gt; nil,
          "documents" =&gt; [
          [0] {
                "booking_form" =&gt; nil,
                "consent_form" =&gt; [
                  [0] "https://www.jjj.com/CF1.jpg"
              ],
              "ic_passport_no" =&gt; [
                  [0] "https://www.jjj.com/IC1.jpg"
              ],
                  "additional" =&gt; nil
          }
      ],
             "format" =&gt; "json",
         "controller" =&gt; "v1/lp_developer_referrals",
             "action" =&gt; "create"
  }
  </code></pre>
  
  <p>Can someone explain to me why my Jmeter is not taking my body data as json objects?</p>