FasterXML / FasterXML/jackson-databind
JSON5: Provide a way to read/write a comment using `JsonNode`
- Lenguaje dominante
- Java
- Estrellas
- 3.7k
- Forks
- 1.5k
- Merge medio
- 3 d 6 h
- PR fusionados (30 d)
- 28
Descripción
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.
Guía de contribución
No hay ninguna guía de contribución indexada para este repositorio
Evaluación
Este issue todavía no se ha evaluado.