We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
2 parents b131f3e + 0fe72a2 commit a331908Copy full SHA for a331908
src/editors/string.js
@@ -16,7 +16,7 @@ JSONEditor.defaults.editors.string = JSONEditor.AbstractEditor.extend({
16
return;
17
}
18
19
- if(value === null) value = "";
+ if(value === null || typeof value === 'undefined') value = "";
20
else if(typeof value === "object") value = JSON.stringify(value);
21
else if(typeof value !== "string") value = ""+value;
22
0 commit comments