Jackson JSON Processor
  1. Jackson JSON Processor
  2. JACKSON-129

Add method to construct JsonParsers to read from JsonNodes

    Details

    • Type: New Feature New Feature
    • Status: Closed Closed
    • Priority: Major Major
    • Resolution: Fixed
    • Affects Version/s: None
    • Fix Version/s: 1.3
    • Component/s: None
    • Labels:
      None
    • Number of attachments :
      0

      Description

      To allow for binding data between various representations (for example, between JsonNode-based trees and POJOs), it would make sense to allow creating virtual JsonParser from JsonNode.

        Activity

        Hide
        Tatu Saloranta added a comment - - edited

        Implemented; can now:

        • Directly create parser with '''JsonParser JsonNode.traverse()'''
        • Create JsonParser using '''JsonParser ObjectMapper.treeAsEvents(JsonNode)'''
        • Bind from JsonNode - based tree using '''ObjectMapper.treeToValue(JsonNode, Class<?>)'''

        Will be part of release 1.3.0.

        Show
        Tatu Saloranta added a comment - - edited Implemented; can now: Directly create parser with '''JsonParser JsonNode.traverse()''' Create JsonParser using '''JsonParser ObjectMapper.treeAsEvents(JsonNode)''' Bind from JsonNode - based tree using '''ObjectMapper.treeToValue(JsonNode, Class<?>)''' Will be part of release 1.3.0.
        Hide
        Tatu Saloranta added a comment -

        Contained in 1.3.0 release.

        Show
        Tatu Saloranta added a comment - Contained in 1.3.0 release.

          People

          • Assignee:
            Tatu Saloranta
            Reporter:
            Tatu Saloranta
          • Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

            • Created:
              Updated:
              Resolved: