I'm implementing an upload feature and i'm having the issue of 2 things that must be related:
Update JSONEditor with a content of { text: "" }, and it returns unexpected end of data at line 1 column 1 in OnChangeStatus (this is understandable, its not a JSON indeed).
Pasting a valid JSON to the editor will not clear the above parseError, only by manually editing.
This only happens with the empty content strangely.
I'm implementing an upload feature and i'm having the issue of 2 things that must be related:
JSONEditor
with a content of{ text: "" }
, and it returnsunexpected end of data at line 1 column 1
inOnChangeStatus
(this is understandable, its not a JSON indeed).parseError
, only by manually editing.This only happens with the empty content strangely.