title: Fetch defect from rally using rally rest api v2.0
body: <p>I am getting the following exception whenever i try to fetch defects from rally:</p>
  
  <pre><code>            com.google.gson.JsonSyntaxException: 
              com.google.gson.stream.MalformedJsonException: Use  JsonReader.setLenient(true) to accept malformed JSON at line 1 column 12
              at com.google.gson.JsonParser.parse(JsonParser.java:65)
              at com.google.gson.JsonParser.parse(JsonParser.java:45)
              at com.rallydev.rest.response.Response.&lt;init&gt;(Response.java:25)
              at com.rallydev.rest.response.QueryResponse.&lt;init&gt;(QueryResponse.java:16)
              at com.rallydev.rest.RallyRestApi.query(RallyRestApi.java:168)
              at Test.main(Test.java:86)
              Caused by: com.google.gson.stream.MalformedJsonException: Use JsonReader.setLenient(true) to accept malformed JSON at line 1 column 12
              at com.google.gson.stream.JsonReader.syntaxError(JsonReader.java:1505)
              at com.google.gson.stream.JsonReader.checkLenient(JsonReader.java:1386)
              at com.google.gson.stream.JsonReader.doPeek(JsonReader.java:531)
              at com.google.gson.stream.JsonReader.peek(JsonReader.java:414)
              at com.google.gson.JsonParser.parse(JsonParser.java:60)
              ... 5
  </code></pre>
  
  <p>What intrigues me most is the code works perfectly fine on few machines and throws the  above exception on few. </p>
  
  <p>code snippet :</p>
  
  <pre><code>RallyRestApi restApi = 
  new RallyRestApi(new URI("http://rally1.rallydev.com"),apiKey);
  QueryRequest queryRequest = new QueryRequest("defects");
  queryRequest.setFetch(new Fetch("Project","FormattedID","Release"));
  QueryFilter filter1 = new QueryFilter("FormattedID", "=", defetctID);
  QueryResponse queryResponse1 =  restApi.query(queryRequest);
  </code></pre>