Importing a single JSON document should work

XMLWordPrintableJSON

    • Type: Bug
    • Resolution: Fixed
    • Priority: Major - P3
    • 1.36.0
    • Affects Version/s: None
    • Component/s: Import/Export
    • None
    • Not Needed
    • None

      Problem Description

      When a json file contains single document instead of array of documents, import process actually imports values of the keys instead of the value itself. For example, if you have a file with following content:

      {
        someKey: { val: 1 },
        anotherKey: { val: 2 }
      }
      

      import process will import two documents val: 1 and val: 2.

      This is not expected and can not only lead to weird data being added to the database, but also to very confusing error messages if values are not supported document types

      Steps to Reproduce

      Described above

      Expected Results

      A single document is imported

      Actual Results

      Described above

      Additional Notes

      Having multiple line separated files (as in LDJSON) should also work when importing

              Assignee:
              Unassigned
              Reporter:
              Sergey Petushkov
              Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

                Created:
                Updated:
                Resolved: