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
JohnnyAWK
changed the title
[BUG]
[BUG]当json嵌套字符串格式son,JSONPath.set返回UnsupportedOperationException
Nov 5, 2024
JohnnyAWK
changed the title
[BUG]当json嵌套字符串格式son,JSONPath.set返回UnsupportedOperationException
[BUG]当json嵌套字符串格式son,JSONPath.set设置字符串格式json值,返回UnsupportedOperationException
Nov 5, 2024
JohnnyAWK
changed the title
[BUG]当json嵌套字符串格式son,JSONPath.set设置字符串格式json值,返回UnsupportedOperationException
[BUG]当json嵌套字符串格式json,JSONPath.set设置字符串格式json值,返回UnsupportedOperationException
Nov 5, 2024
问题描述
当json嵌套字符串格式json,JSONPath.set设置字符串格式json值,返回UnsupportedOperationException
环境信息
请填写以下信息:
重现步骤
如何操作可以重现该问题:
测试数据:
{"taskRecord":{"bizDate":"","bizNo":"","content":"{"id":"abc","outId":"xxx","code":"xxx","scene":"xxx"}","failedCount":0,"nextExecTime":"2020-01-01 00:00:00","taskName":"xxx"},"id":"abc"}
重现步骤:
1、把上述测试数据通过JSON.parseObject转换成JSONObject对象
2、调用JSONPath.set(步骤1产生的JSONObject对象, "$.taskRecord.content.id", "1234"),即可出现UnsupportedOperationException
期待的正确结果
对您期望发生的结果进行清晰简洁的描述。
相关日志输出
请复制并粘贴任何相关的日志输出。
附加信息
如果你还有其他需要提供的信息,可以在这里填写(可以提供截图、视频等)。
The text was updated successfully, but these errors were encountered: