mr-data-converter icon indicating copy to clipboard operation
mr-data-converter copied to clipboard

Output invalid when data has double quotes

Open thdoan opened this issue 9 years ago • 3 comments

Steps to reproduce:

  1. Paste this into the input field:
name    unit
"Attitude ""for"" Men"  Shop 5
  1. Convert the data. For example, the generated JSON Properties data looks like this:
[{"name":"Attitude "for" Men","unit":"Shop 5"}]

The double quotes around "for" need to be escaped.

thdoan avatar Oct 14 '15 03:10 thdoan

When using JSON properties, the data is truncated after the first quote, this is quite bad

sector	job_title
Études/recherche	Directeur de "Plateform for ..."

==>

[{"sector":"Études/recherche","job_title":"Directeur de "}

Startouf avatar Aug 22 '19 09:08 Startouf

@Startouf I've patched this issue and added other enhancements in my fork.

thdoan avatar Aug 22 '19 17:08 thdoan

Thank you @thdoan!

ftruzzi avatar Jun 17 '20 13:06 ftruzzi