[COMPASS-3755] Improve importing invalid JSON Created: 03/Jul/19  Updated: 16/Aug/19  Resolved: 16/Aug/19

Status: Closed
Project: Compass
Component/s: Import/Export
Affects Version/s: None
Fix Version/s: None

Type: New Feature Priority: Major - P3
Reporter: Lucas Hrabovsky (Inactive) Assignee: Unassigned
Resolution: Done Votes: 0
Labels: None
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified

Issue Links:
Problem/Incident
causes COMPASS-3829 Import JSON Closed
is caused by COMPASS-3727 Can't Import JSON Closed

 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.



 Comments   
Comment by Massimiliano Marcon [ 16/Aug/19 ]

Triaged and included in COMPASS-3829

Generated at Wed Feb 07 22:34:08 UTC 2024 using Jira 9.7.1#970001-sha1:2222b88b221c4928ef0de3161136cc90c8356a66.