Uploaded image for project: 'MongoDB ETL Tools'
  1. MongoDB ETL Tools
  2. TOOLS-1070

Simplify mongoimport's JSON array support

    XMLWordPrintable

    Details

    • Type: Task
    • Status: Closed
    • Priority: Minor - P4
    • Resolution: Won't Fix
    • Affects Version/s: None
    • Fix Version/s: None
    • Component/s: None
    • Labels:
      None

      Description

      New in 1.5, Golang's JSON decoder type has a new method that provides a streaming interface for decoding a JSON document: Token. It also interoperates with the existing functionality of Decode, which will continue a decode operation already started with Decoder.Token. - see example at https://golang.org/pkg/encoding/json/#Decoder.Decode

      The added Token function will allow us to read and validate opening and closing brackets for JSON arrays. This will eliminate the need for the separatorReader in mongoimport.

        Attachments

          Activity

            People

            • Assignee:
              backlog-server-tools Backlog - Server Tools Team
              Reporter:
              adinoyi.omuya Adinoyi Omuya
            • Votes:
              0 Vote for this issue
              Watchers:
              3 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: