Import: Allow importing JSON arrays

- "export" defaults to JSON array output now.  Make "import" read it
  instead of throwing an error.
This commit is contained in:
Wilhelm Schuermann 2015-07-16 12:31:04 +02:00
parent b92802c2fb
commit 8613a49f6e
2 changed files with 4 additions and 1 deletions

View file

@ -101,7 +101,9 @@ int CmdImport::import (std::vector <std::string>& lines)
{
std::string object = trimLeft (
trimRight (
trim (line),
trimRight (
trim (line),
","),
"]"),
"[");