Skip to content

Tab character in a value in a JSON file results in a truncated data import #1164

@ostephens

Description

@ostephens

When importing JSON to OpenRefine through 'Create Project', if there is a tab inside a value in the JSON file, the import succeeds but only imports data up to the tab character. e.g. JSON:

{ "rows": [ { "Content": "A" }, { "Content": " B" }, { "Content": "C" } ] }
(tab character is before the 'B')

Since tab is an illegal character in this position (should be escaped as \t) it makes sense for the import to fail - but failing silently is a problem.

Not sure what the best solution is - three possibilities:

  1. Import should fail completely with an error
  2. Import should succeed with the data truncated as currently but with feedback to the user that the truncation has occurred and why
  3. Import should succeed with full data, converting illegal character to escaped version

Metadata

Metadata

Assignees

Labels

JSONJSON as a data import/export formatType: Feature RequestIdentifies requests for new features or enhancements. These involve proposing new improvements.importAbout importers in general - add a label for the data format if available

Type

No type

Projects

No projects

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions