You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
代码如下 1.0可以正常运行,2.0不可以
JSONArray arr = new JSONArray();
arr.add("A");
arr.add("B");
System.out.println(arr.toList(String.class));
错误如下
Exception in thread "main" com.alibaba.fastjson2.JSONException: class java.lang.String cannot be converted to class java.lang.String
at com.alibaba.fastjson2.JSONArray.toList(JSONArray.java:995)
at
The text was updated successfully, but these errors were encountered:
代码如下 1.0可以正常运行,2.0不可以
JSONArray arr = new JSONArray();
arr.add("A");
arr.add("B");
System.out.println(arr.toList(String.class));
错误如下
Exception in thread "main" com.alibaba.fastjson2.JSONException: class java.lang.String cannot be converted to class java.lang.String
at com.alibaba.fastjson2.JSONArray.toList(JSONArray.java:995)
at
The text was updated successfully, but these errors were encountered: