This commit is contained in:
wltsmrz
2013-09-09 14:28:15 -07:00
parent e944f0f5c4
commit dad760f9ba

View File

@@ -173,6 +173,8 @@ function jsonify_structure(thing, field_name) {
case 'object':
if (typeof thing.to_json === 'function') {
output = thing.to_json();
} else if (thing === null) {
break;
} else {
output = new thing.constructor;
var keys = Object.keys(thing);