(JSONArray).toList() breaks format of entries
还没有人认领这个 Issue。
评估
调研方向
No source file or test is named in the report. Reproduce the difference between JSONArray.get() and JSONArray.toList().get(), then inspect the JSONArray.toList() implementation and existing comments for the intended representation. Done means the reported entries retain the expected format without regressing other conversions.
由索引模型根据 Issue 内容生成。
描述
Unfortunately invoking method .toList() on JSONArray Object causes entries of the JSONArray to become malformated.
Issue examples:
Output from (JSONArray).get()
{"data":{"pressure_avg":1012.3399999999999,"humidity_avg":61.5,"temperature_avg":12.85,"pm10_avg":0.6900000000000001,"pm25_avg":0.36},"school":{"city":"DŁUGOŁĘKA","street":null,"post_code":"19-111","latitude":"53.2753471","name":"SZKOŁA PODSTAWOWA W DŁUGOŁĘCE","longitude":"22.8683732"},"timestamp":"2023-05-19 23:56:45"}
Output from (JSONArray).toList().get()
{data={pressure_avg=1012.3399999999999, humidity_avg=61.5, temperature_avg=12.85, pm10_avg=0.6900000000000001, pm25_avg=0.36}, school={city=DŁUGOŁĘKA, street=null, post_code=19-111, latitude=53.2753471, name=SZKOŁA PODSTAWOWA W DŁUGOŁĘCE, longitude=22.8683732}, timestamp=2023-05-19 23:56:45}
- 主要语言
- Java
- 星标
- 4.7k
- 派生
- 2.6k
- 平均合并
- 5 天 14 小时
- 30 天内合并 PR
- 4
环境准备
- 没有 Dockerfile 或 Docker Compose 文件
- 没有 Pull Request 模板
- 阅读贡献指南
从这里开始
- 先读完整个 Issue,再读项目的贡献指南。
- 在 Issue 下留言说明你要接手 —— 这能避免两个人做同样的事。
- Fork 仓库,在一个分支上完成修改。
- 提交 Pull Request,并在描述里引用这个 Issue 编号。
stleary/JSON-java 的其他 Issue
-
难度 2/5 1-3 小时 新手友好度 76/100
-
JSONML checks childNode instead of the reserved childNodes attribute可能已有人在做 @zemiles 于 3 天前认领。 未关闭
难度 2/5 1-3 小时 新手友好度 88/100
-
JSONML decodes text entities twice with keepStrings enabled可能已有人在做 @Boulea7 于 2 天前认领。 未关闭
难度 2/5 1-3 小时 新手友好度 82/100
-
Fix before the next release
难度 2/5 1-3 小时 新手友好度 78/100
-
Active discussion
难度 5/5 一周以上 新手友好度 35/100
查看 stleary/JSON-java 的全部 Issue
相似的 Issue
-
难度 1/5 1-3 小时 新手友好度 88/100
-
[Bug] The shared instance selector's placeholder and no-match text ignore the display language可能已有人在做 关联的 PR 仍在进行中或已合并。 未关闭
难度 2/5 1-3 小时 新手友好度 90/100
apache/rocketmq-dashboard#5561 ·
维护者通常 3 天内回复
-
enhancement
难度 2/5 1-3 小时 新手友好度 68/100
维护者通常 1 天内回复
-
bug good first issue help wanted priority medium size S
难度 2/5 1-3 小时 新手友好度 84/100
martin-francois/symphony-trello#776 · 1 条评论 ·
维护者通常 1 天内回复
-
Console.printHex未关闭good first issue kernel
难度 2/5 1-3 小时 新手友好度 88/100
JackFurton/who-would-build-a-kernel-in-java#33 · 2 条评论 ·
维护者通常 1 天内回复