Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

temporary fix for json parser

  • Loading branch information...
commit 939c55368e93a065eea5605039ddb23f7ce15438 1 parent 92aef0d
@chjj authored
Showing with 4 additions and 1 deletion.
  1. +1 −1  index.js
  2. +3 −0  lib/json.js
View
2  index.js
@@ -1 +1 @@
-module.exports = require('./lib/parted');
+module.exports = require('./lib/index');
View
3  lib/json.js
@@ -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:
Please sign in to comment.
Something went wrong with that request. Please try again.