Skip to content

Commit

Permalink
temporary fix for json parser
Browse files Browse the repository at this point in the history
  • Loading branch information
chjj committed Oct 17, 2011
1 parent 92aef0d commit 939c553
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 1 deletion.
2 changes: 1 addition & 1 deletion index.js
@@ -1 +1 @@
module.exports = require('./lib/parted'); module.exports = require('./lib/index');
3 changes: 3 additions & 0 deletions lib/json.js
Expand Up @@ -150,6 +150,9 @@ Parser.prototype._parse = function(data) {
this._escapeNext = 0; this._escapeNext = 0;
} else { } else {
this.state = 'value'; this.state = 'value';
// hack for now, or else empty strings wont work
// empty strings need to be truthy
if (!this.value) this.value = ' ';
} }
break; break;
default: default:
Expand Down

0 comments on commit 939c553

Please sign in to comment.