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

@ -65,6 +65,7 @@
- The '_ids', '_projects', '_tags', '_uuids' helper commands are deprecated,
and replaced by the new '_unique' helper command, which generates lists of
unique values for the specified attribute.
- "import" can now import JSON arrays, the new default "export" output.
------ current release ---------------------------

View file

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