FasterXML / FasterXML/jackson-databind
JSON5: Provide a way to read/write a comment using `JsonNode`
オープン
- 主要言語
- Java
- スター
- 3.7k
- フォーク
- 1.5k
- 平均マージ
- 3日 6時間
- マージ済み PR(30日)
- 28
説明
I'd like to parse JSON5 containing comments. `JsonReadFeature#ALLOW_JAVA_COMMENTS` ignores comments when deserializing a JSON into a `JsonNode`.
https://github.com/FasterXML/jackson-core/blob/0fbb52961c5092d7d1f8e8f620b719f9eff48fcd/src/main/java/com/fasterxml/jackson/core/json/ReaderBasedJsonParser.java#L2521-L2523
As a result, we lose the comment information and cannot read/recover the original content from the parsed `JsonNode`.
A commentable `JsonNode` is useful so as to retrieve the original comment and serialize the JsonNode to JSON5 format.
コントリビューションガイド
このリポジトリのコントリビューションガイドは索引されていません
評価
この issue はまだ評価されていません。