Uploaded image for project: 'Compass '
  1. Compass
  2. COMPASS-3755

Improve importing invalid JSON

    • Type: Icon: New Feature New Feature
    • Resolution: Done
    • Priority: Icon: Major - P3 Major - P3
    • None
    • Affects Version/s: None
    • Component/s: Import/Export
    • None

      From googling to triage COMPASS-3727

      1. Show detailed error message of why my JSON is invalid.

      https://www.npmjs.com/package/jsonlint provides output like:

      Error: Parse error on line 1:
      ...esentiustoodio.us"}{"_id":{"$oid":"5864
      ----------------------^
      Expecting 'EOF', '}', ',', ']', got '{'
      

      2. Handle invalid dirty JSON automatically.

      Needs more googling (search for dirty || loose JSON parsing) but have used npm modules in the past that can handle typos like the above without the user needing to fix and try again.

            Assignee:
            Unassigned Unassigned
            Reporter:
            lucas.hrabovsky Lucas Hrabovsky (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Created:
              Updated:
              Resolved: