IllegalStateException: Expected a string but was BEGIN_OBJECT at line 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;
}