title: How to create a simple json template to send body data with restassured?
body: <p>So i am trying to build a json to send data to the body of my restassured request, like this structure here:</p>
  
  <pre><code>{
    "id": 1,
    "category": {
      "id": 1,
      "name": "duch"
    },
    "name": "benny",
    "photoUrls": [
      "string"
    ],
    "tags": [
      {
        "id": 0,
        "name": "string"
      }
    ],
    "status": "available"
  }
  </code></pre>
  
  <p>So it is as simple as to copy this as string to the body of the request and i am done, i don't want that at all.</p>
  
  <p>Is there a framework of sorts to give this structure and to change the data dynamically somehow? 
  I don't want this: (for example)</p>
  
  <pre><code>given().body("{\r\n\"city\": \"Hod Hasharon\",\r\n\"description\": \"Automation Hotel\",\r\n\"name\":\"Nir Great hotel\",\r\n\"rating\":5\r\n}")
                      .when().post("http://localhost:8090/example/v1/hotels").then().statusCode(201);
  </code></pre>
  
  <p>I want to be more flexible here, to reference some kind of object (A template with the option to change the data in some places?) that handles this stuff, is there something like that?</p>