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

Improve importing invalid JSON

    XMLWordPrintableJSON

Details

    • Icon: New Feature New Feature
    • Resolution: Done
    • Icon: Major - P3 Major - P3
    • None
    • None
    • Import/Export
    • None

    Description

      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.

      Attachments

        Activity

          People

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

            Dates

              Created:
              Updated:
              Resolved: