Permalink
Browse files

temporary fix for json parser

  • Loading branch information...
chjj committed Oct 17, 2011
1 parent 92aef0d commit 939c55368e93a065eea5605039ddb23f7ce15438
Showing with 4 additions and 1 deletion.
  1. +1 −1 index.js
  2. +3 −0 lib/json.js
View
@@ -1 +1 @@
-module.exports = require('./lib/parted');
+module.exports = require('./lib/index');
View
@@ -150,6 +150,9 @@ Parser.prototype._parse = function(data) {
this._escapeNext = 0;
} else {
this.state = 'value';
+ // hack for now, or else empty strings wont work
+ // empty strings need to be truthy
+ if (!this.value) this.value = ' ';
}
break;
default:

0 comments on commit 939c553

Please sign in to comment.