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:
@@ -65,6 +65,7 @@
|
|||||||
- The '_ids', '_projects', '_tags', '_uuids' helper commands are deprecated,
|
- The '_ids', '_projects', '_tags', '_uuids' helper commands are deprecated,
|
||||||
and replaced by the new '_unique' helper command, which generates lists of
|
and replaced by the new '_unique' helper command, which generates lists of
|
||||||
unique values for the specified attribute.
|
unique values for the specified attribute.
|
||||||
|
- "import" can now import JSON arrays, the new default "export" output.
|
||||||
|
|
||||||
------ current release ---------------------------
|
------ current release ---------------------------
|
||||||
|
|
||||||
|
|||||||
@@ -101,7 +101,9 @@ int CmdImport::import (std::vector <std::string>& lines)
|
|||||||
{
|
{
|
||||||
std::string object = trimLeft (
|
std::string object = trimLeft (
|
||||||
trimRight (
|
trimRight (
|
||||||
trim (line),
|
trimRight (
|
||||||
|
trim (line),
|
||||||
|
","),
|
||||||
"]"),
|
"]"),
|
||||||
"[");
|
"[");
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user