Skip to content

new Document(JSONObject) constructor - yields empty results #67

@AdallomRoy

Description

@AdallomRoy

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); }

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions