title: Passing json string as an input to one of the parameters of a POST request body in RESTAssured with Selenium
body: <p>I am using RESTAssured java library in Selenium for API test automation. I need to pass a json string as a value to one parameter of a POST request body. My request body looks like this:</p>
  <pre><code>{
    &quot;parameter1&quot;: &quot;abc&quot;,
    &quot;parameter2&quot;: &quot;def&quot;,
    &quot;parameter3&quot;: {
      &quot;id&quot;: &quot;&quot;,
      &quot;key1&quot;: &quot;test123&quot;,
      &quot;prod1&quot;: {
        &quot;id&quot;: &quot;&quot;,
        &quot;key3&quot;: &quot;test123&quot;,
        &quot;key4&quot;: &quot;12334&quot;,
        &quot;key5&quot;: &quot;3&quot;,
        &quot;key6&quot;: &quot;234334&quot;
      },
      &quot;prod2&quot;: {
        &quot;id&quot;: &quot;&quot;,
        &quot;key7&quot;: &quot;test234&quot;,
        &quot;key8&quot;: &quot;1&quot;,
        &quot;key9&quot;: true
      }
    },
    &quot;parameter4&quot;: false,
    &quot;parameter5&quot;: &quot;ghi&quot;
  }
  </code></pre>
  <p>For parameter3 I need to be pass a string value in json format. The json file is located in my local system and is a huge file, so it would make sense if I can pass the path to the json file.</p>
  <p>Is there any way using RestAssured to achieve this?</p>