Object 转json串时去掉空格及换行和制表符
This commit is contained in:
@@ -24,7 +24,7 @@ public class JsonUtil {
|
|||||||
e.printStackTrace();
|
e.printStackTrace();
|
||||||
}
|
}
|
||||||
|
|
||||||
return jsonStr;
|
return jsonStr.replaceAll("\\s*", "");
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user