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

        Tatu Saloranta made changes -
        Field Original Value New Value
        Status Open [ 1 ] In Progress [ 3 ]
        Tatu Saloranta made changes -
        Summary Add method to "read" from Map/Collection, and/or JsonNode (by creating JsonParser) Add method to construct JsonParsers to read from JsonNodes
        Fix Version/s 1.3 [ 15599 ]
        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 Map/Collection, or from JsonNode (if only latter, should also provide ObjectNode/CollectionNode constructors from Map/Collection).
        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.


        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.
        Tatu Saloranta made changes -
        Resolution Fixed [ 1 ]
        Status In Progress [ 3 ] Resolved [ 5 ]
        Hide
        Tatu Saloranta added a comment -

        Contained in 1.3.0 release.

        Show
        Tatu Saloranta added a comment - Contained in 1.3.0 release.
        Tatu Saloranta made changes -
        Status Resolved [ 5 ] Closed [ 6 ]

          People

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

            Dates

            • Created:
              Updated:
              Resolved: