We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents a617a26 + d7ab50c commit 9a07330Copy full SHA for 9a07330
src/main/java/com/contentstack/sdk/QueryResult.java
@@ -4,6 +4,7 @@
4
import org.json.JSONObject;
5
6
import java.util.List;
7
+import java.util.Map;
8
import java.util.logging.Level;
9
import java.util.logging.Logger;
10
@@ -105,7 +106,8 @@ private void extractSchemaArray() {
105
106
private void extractContentObject() {
107
try {
108
if (receiveJson != null && receiveJson.has("content_type")) {
- JSONObject jsonObject = receiveJson.getJSONObject("content_type");
109
+ Object contentTypeObject = receiveJson.get("content_type");
110
+ JSONObject jsonObject = new JSONObject((Map<?, ?>) contentTypeObject);
111
if (jsonObject != null) {
112
contentObject = jsonObject;
113
}
0 commit comments