Correcting JsonImporter to use the correct parser.
git-svn-id: http://google-refine.googlecode.com/svn/trunk@1388 7d457c2a-affb-35e4-300a-418c747d4874
This commit is contained in:
parent
855df20481
commit
bd3ded0828
@ -13,7 +13,6 @@ import com.google.refine.ProjectMetadata;
|
||||
import com.google.refine.importers.TreeImportUtilities.ImportColumnGroup;
|
||||
import com.google.refine.importers.parsers.JSONParser;
|
||||
import com.google.refine.importers.parsers.TreeParser;
|
||||
import com.google.refine.importers.parsers.XmlParser;
|
||||
import com.google.refine.model.Project;
|
||||
|
||||
public class JsonImporter implements StreamImporter{
|
||||
@ -65,7 +64,7 @@ public class JsonImporter implements StreamImporter{
|
||||
return;
|
||||
|
||||
ImportColumnGroup rootColumnGroup = new ImportColumnGroup();
|
||||
XmlImportUtilities.importTreeData(new XmlParser(pis), project, recordPath, rootColumnGroup);
|
||||
XmlImportUtilities.importTreeData(new JSONParser(pis), project, recordPath, rootColumnGroup);
|
||||
XmlImportUtilities.createColumnsFromImport(project, rootColumnGroup);
|
||||
|
||||
project.columnModel.update();
|
||||
|
Loading…
Reference in New Issue
Block a user