“预期BEGIN_Object,但在第1列为字符串”
public static Object parseStringToObject(String json) { String Object = json; Gson gson = new Gson(); Object objects = gson.fromJson(object, Object.class); parseConfigFromObjectToString(object); return objects;}
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(); }}
JsonSyntaxException:java.lang.IllegalStateException:预期BEGIN_Object,但在第1列为String
largeQ
繁星淼淼
相关分类