java.lang.IllegalStateException: Expected BEGIN_OBJECT but was STRING at line 1 column 1 path $ code example
Example: java.lang.illegalstateexception: expected begin_object but was string at line 1 column 1 path $
public static Object parseStringToObject(String json) {
String Object = json;
Gson gson = new Gson();
Object objects = gson.fromJson(object, Object.class);
parseConfigFromObjectToString(object);
return objects;
}