Import creates values not folders

When importing a file generated from the consul kv export command, values are created instead of folders. In the example below, a kv pair is created named configs with empty value. This instead of a folder named configs. I did an export, deleted the folder and then did an import.

eg.
[
{
“key”: “configs/”,
“flags”: 0,
“value”: “”
}
]