title: "Expected BEGIN_OBJECT but was STRING at line 1 column 1"
body: <p>I have this method:</p>
  
  <pre><code>public static Object parseStringToObject(String json) {
      String Object = json;
      Gson gson = new Gson();
      Object objects = gson.fromJson(object, Object.class);
      parseConfigFromObjectToString(object);
      return objects;
  }
  </code></pre>
  
  <p>And I want to parse a JSON with:</p>
  
  <pre><code>public static void addObject(String IP, Object addObject) {
      try {
          String json = sendPostRequest("http://" + IP + ":3000/config/add_Object", ConfigJSONParser.parseConfigFromObjectToString(addObject));
          addObject = ConfigJSONParser.parseStringToObject(json);
      } catch (Exception ex) {
          ex.printStackTrace();
      }
  }
  </code></pre>
  
  <p>But I get an error message:</p>
  
  <blockquote>
    <p>com.google.gson.JsonSyntaxException: java.lang.IllegalStateException:
    Expected BEGIN_OBJECT but was STRING at line 1 column 1</p>
  </blockquote>