Suggestion: Add more constructors with parameters for JSONParserConfiguration
还没有人认领这个 Issue。
评估
- 难度
- 3/5
- 预计耗时
- 1-2 天
- 新手友好度
- 42/100
- Issue 类型
- 功能
- 描述清晰度
- 基本清楚
- 活跃度
- 停滞
- 技术栈
- java
调研方向
Start by locating JSONParserConfiguration and reviewing its existing withStrictMode() and related configuration methods. Check the relevant configuration tests and API conventions before assessing the requested parameterized constructors; done means the requested settings can be supplied at construction and existing behavior remains covered.
由索引模型根据 Issue 内容生成。
描述
to me it was counter intuitive to create a default configured JSONParserConfiguration to then call withStrictMode() on it returning a clone and making the first instance obsolete. I would even need to create multiple clones until I have the correct configuration, when I want to set multiple values. I would like to be able to create my desired configuration in one go.
This would require a Constructor JSONParserConfiguration(boolean overwriteDuplicateKey, boolean strictMode) or even JSONParserConfiguration(boolean overwriteDuplicateKey, boolean strictMode, boolean keepStrings, int maxNestingDepth).
I would also allow the make the configuration fiels final although that would be a backwards compatible breaking change, and therefore will most probably not be added. I would make it reasier to reason about the codes behaviour and avoid the potential of changing an already used configuration.
What do you think of it?
- 主要语言
- 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
-
难度 2/5 1-3 小时 新手友好度 88/100
-
难度 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
-
0 - Backlog 1 - Ready documentation good first issue help wanted
难度 2/5 1-3 小时 新手友好度 78/100
-
cbor
难度 2/5 1-3 小时 新手友好度 84/100
FasterXML/jackson-dataformats-binary#844 ·
维护者通常 1 天内回复
-
improvement
难度 2/5 1-3 小时 新手友好度 78/100
apache/iceberg#18351 · 1 条评论 ·
维护者通常 1 天内回复
-
bug good first issue
难度 2/5 1-3 小时 新手友好度 90/100
repowise-dev/repowise#2945 · 1 条评论 ·
维护者通常 1 天内回复
-
bug
难度 2/5 1-3 小时 新手友好度 68/100
维护者通常 1 天内回复