Skip to content

Commit

Permalink
com.feilong.json.JsonHelper.isNeedConvertToJSONArray(Object) 改成 public
Browse files Browse the repository at this point in the history
fix #705
  • Loading branch information
venusdrogon committed Feb 18, 2024
1 parent 93374c8 commit e1b3b0b
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion feilong-json/src/main/java/com/feilong/json/JsonHelper.java
Original file line number Diff line number Diff line change
Expand Up @@ -135,8 +135,9 @@ public static JSON toJSON(Object obj,JsonConfig jsonConfig){
* the obj
* @return true, if is need convert to JSON array
* @see com.feilong.lib.json.util.JSONUtils#isArray(Object)
* @since 4.1.0 change to public
*/
private static boolean isNeedConvertToJSONArray(Object obj){
public static boolean isNeedConvertToJSONArray(Object obj){
if (obj instanceof String){
String str = (String) obj;
if (str.startsWith(ARRAY_START_CHAR) && str.endsWith(ARRAY_END_CHAR)){// [] 格式的字符串
Expand Down

0 comments on commit e1b3b0b

Please sign in to comment.