Hi all,
I understand that the JSON format doesn't allow for multi-line strings, but I believe in principal the kanso upload command should be able to properly parse these out and replace them with '\n'. At the moment, this doesn't work, e.g.:
> cat tmp.json
{
"_id" : "test",
"astring" : "test \
+1"
}
Reading tmp.json
Error: SyntaxError: Unexpected token
at Object.parse (native)
at ParseStream.Native (/usr/local/lib/node_modules/kanso/lib/data-stream/ParseStream.js:78:26)
at ParseStream._newToken (/usr/local/lib/node_modules/kanso/node_modules/parser/lib/Parser.js:105:24)
...
This also doesn't work without the "escape" new-line. I was digging a little to see how difficult it would be to update the parser to properly remove new-lines. Has anyone already done this?
Cheers,
Mike