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
fastjson.JSON.parseObject should throw proper exception when parsing malformed json.
相关日志输出
com.alibaba.fastjson2.JSONException: input not end, offset 56, character m, line 1, column 56, fastjson-version 2.0.49 {"data":{"items":[{"name":"item1"},{"name":"item2"}]}},malformed
at com.alibaba.fastjson2.JSON.parseObject(JSON.java:996)
at Issue474Mutated_203.malformedFastJson2Parse(Issue474Mutated_203.java:34)
The text was updated successfully, but these errors were encountered:
问题描述
基于 #474,解析malformed的json,fastjson2抛exception 而fastjson默认通过解析。
环境信息
重现步骤
期待的正确结果
fastjson.JSON.parseObject should throw proper exception when parsing malformed json.
相关日志输出
com.alibaba.fastjson2.JSONException: input not end, offset 56, character m, line 1, column 56, fastjson-version 2.0.49 {"data":{"items":[{"name":"item1"},{"name":"item2"}]}},malformed
at com.alibaba.fastjson2.JSON.parseObject(JSON.java:996)
at Issue474Mutated_203.malformedFastJson2Parse(Issue474Mutated_203.java:34)
The text was updated successfully, but these errors were encountered: