title: Issue with i/o No serializer found for class org.json.JSONObject and no properties discovered to create BeanSerializer
body: <p>not sure whats going on, the full error is:</p>
  
  <pre><code>Problem with i/o No serializer found for class org.json.JSONObject and no properties        discovered to create BeanSerializer (to avoid exception, disable SerializationConfig.Feature.FAIL_ON_EMPTY_BEANS) )
  </code></pre>
  
  <p>I am trying to send a PUT request to a RESTful service. I am parsing a POST And sending modified key/value pairs for 'ID' and 'enabled' for the PUT.</p>
  
  <pre><code>@Test(dependsOnMethods= {"Post"})
  public void Put() throws IOException  {
  
  logger.logTestActivity("Testing FORM data POST using Excel file");
  requestBuilder = new RequestSpecBuilder();
  
  String jsonString = "";
  boolean enabledModify = false;
  
  try {
   BufferedReader in = new BufferedReader(new FileReader(
   xmlTest.getParameter("json-post")));
  
  String str;
  
  while ((str = in.readLine()) != null) {
        jsonString += str;
          }
  
  JSONObject jsonObjPut = new JSONObject(jsonString);
  jsonObjPut.put("_id", createUserId);
  jsonObjPut.put("enabled",enabledModify);
  
      System.out.println(jsonObjPut.toString());
  in.close();
  
      requestBuilder.setContentType(ContentType.JSON);
      requestSpecification = requestBuilder.build();
      responseBuilder.expectStatusCode(Integer.parseInt(xmlTest
      .getParameter("http-status-code-200")));
      responseBuilder.expectContentType(ContentType.JSON);
      responseSpecification = responseBuilder.build();    
  System.out.println(createUserId);
  
  String responseJson = given().body(jsonObjPut).         
  when().put("/" + createUserId).asString();
  
      System.out.println(responseJson);
  
  logger.logTestActivity("Finished testing FORM data POST using Excel file");
  } catch (AssertionError e ) {
    logger.logTestActivity(
          "Error testing FORM data post: " + e.getMessage(),logger.ERROR);
  
        System.out.println("REST URL: " + RestAssured.baseURI + " "
                  + RestAssured.port + " " + RestAssured.basePath );
    Assert.fail("Error testing FORM data POST: " + e.getMessage());
          throw e;
  } catch (IOException | JSONException e) {
     System.out.println("Problem with i/o" + e.getMessage()); 
      }
  }
  </code></pre>
  
  <p>createUserID is a global variable that is the ID parsed from the POST.</p>
  
  <p>JSON file that is getting parsed looks like this:</p>
  
  <pre><code>{
  "enabled" : false,
  "_id" : "fdse332a-22432d-4432b"
  }
  </code></pre>
  
  <p>In a before test method I am setting up the restassured with all the appropriate url endpoints...</p>
  
  <p>Also, the PUT is also failing, with a NULLPointerException Error. That may be another post in the future!</p>