diff --git a/hutool-json/src/main/java/cn/hutool/json/ObjectMapper.java b/hutool-json/src/main/java/cn/hutool/json/ObjectMapper.java index 32c8b035f..05d59ec51 100755 --- a/hutool-json/src/main/java/cn/hutool/json/ObjectMapper.java +++ b/hutool-json/src/main/java/cn/hutool/json/ObjectMapper.java @@ -216,7 +216,7 @@ public class ObjectMapper { XML.toJSONObject(jsonObject, jsonStr, false); return; } - mapFromTokener(new JSONTokener(StrUtil.trim(source), jsonObject.getConfig()), jsonObject, filter); + mapFromTokener(new JSONTokener(jsonStr, jsonObject.getConfig()), jsonObject, filter); } /**