iterationlabs/jsoneditor — Issue #2: null in JSON
Author: mrjohndcarter
Created: 2012-02-28 17:26:31+00:00
State: open

repro:

{
"address" : {
"address" : null,
"first" : "John",
"last" : "Carter"
}
}

problem is line 500:

elem = this.editable(json.toString(), key, parent, root, 'value').wrap('').parent();
jquery.json-editor.js:500TypeError: 'null' is not an object (evaluating 'json.toString')

not sure what the sanest way to handle null in the view is. render as empty string?