Azure / Azure/azure-documentdb-java

new Document(JSONObject) constructor - yields empty results

Open
#67 0 comments 0 reactions 0 assignees View on GitHub
bug
Dominant language
Java
Stars
51
Forks
52
PR merge metrics
No merged PRs in 30d

Description

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

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.