You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
When running
new Document(JSONObject) -> the document received is empty.
Running new Document(JSONObject.toString()) - works fine.
The root issue is that for some reason new JSONObject(JSONObject) returns an empty JSONObject (and that's what happens in JSONSerializable's constructor):
protected JsonSerializable(JSONObject jsonObject) { this.propertyBag = new JSONObject(jsonObject); }