sadfasdf2 / google-refine

Automatically exported from code.google.com/p/google-refine
Other
0 stars 0 forks source link

Importing using Clipboard function does not guess structure correctly for XML or JSON #452

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
What steps will reproduce the problem?
1. Import an XML or JSON doc using the Clipboard.

What is the expected output? What do you see instead?

The selector defaults to Line Based always, without correctly guessing the XML 
or JSON structure.  It would be useful for it to guess correctly after some XML 
or JSON text structure is pasted into the clipboard after clicking NEXT, rather 
than always defaulting to Line Based in preview.

Original issue reported on code.google.com by thadguidry on 28 Sep 2011 at 6:18

GoogleCodeExporter commented 9 years ago
This seems dependent on the actual text you paste (e.g., how long it is). I 
pasted in XML and JSON text and it got detected properly. For example, the 
output of this Freebase query http://tinyurl.com/6x3hunt gets detected as JSON. 
Could you provide the text you used?

Original comment by dfhu...@gmail.com on 29 Sep 2011 at 2:29

GoogleCodeExporter commented 9 years ago
The universities top 10 json test file from Scraperwiki.  I attached again.

I just noticed that TextFormatGuesser.java does not have an elseif for 
open/closed Square Brackets, just Angle Brackets.  Don't we also need that for 
json files that are one big array [] rather than an object {} ?

Original comment by thadguidry on 29 Sep 2011 at 1:29

Attachments:

GoogleCodeExporter commented 9 years ago
This issue was closed by revision r2263.

Original comment by dfhu...@google.com on 29 Sep 2011 at 2:02

GoogleCodeExporter commented 9 years ago

Original comment by dfhu...@google.com on 9 Oct 2011 at 5:26