kanso/kanso — Issue #352: Uploader won't parse negative number
Author: caolan
Created: 2012-01-15 19:01:44+00:00
State: open

__From the mailing list:__

> I have a negative number in my JSON and it is blowing up the parser
when I run:

```
kanso upload path/to/my/file.txt
```

```
Error: SyntaxError: could not parse "-"
at Tokenizer._tokenize (/Users/dice/github/kanso/lib/data-stream/
Tokenizer.js:47:36)
at Tokenizer.write (/Users/dice/github/kanso/lib/data-stream/
Tokenizer.js:20:10)
at ParseStream.write (/Users/dice/github/kanso/node_modules/parser/
lib/Parser.js:130:21)
at [object Object].ondata (stream.js:38:26)
at [object Object].emit (events.js:67:17)
at [object Object]._emitData (fs.js:1149:10)
at afterRead (fs.js:1131:10)
at Object.wrapper [as oncomplete] (fs.js:254:17)
Failed
```

> Here is the JSON:

```javascript
[
{"loc":[28.549824,-82.530219],"_id":"9346039"}
]
```

> I think the parser rules need to be updated in, but I wasn't sure how
to do it.