Skip to content

additional APIs to support converting from Toon format to a Jackson JsonNode (and vice versa) #87

@pjfanning

Description

@pjfanning

Problem Statement

This relates to FasterXML/jackson-future-ideas#96

I think it would be useful to convert from a Toon documents to a Jackson JsonNode and to able to convert a Jackson JsonNode to a Toon document.
I'm not suggesting that you drop your existing APIs to convert directly from Toon documents to Java object instances (and vice versa) but with the extra APIs that I am suggesting, it would allow users to also plugin to Jackson ecosystem and benefit from its support for Java types and classes specific to languages like Kotlin and Scala.

There is https://github.com/prb/jackson-toon but this lib has a good chance of being more spec compliant. It still may make sense for this lib to have some support for integrating with Jackson.

Proposed Solution

New API methods. You already have some internal support for Jackson JsonNodes.

Alternatives Considered

No response

SPEC Compliance

No response

Additional Context

No response

Metadata

Metadata

Labels

enhancementNew feature or request

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions