File tree Expand file tree Collapse file tree 2 files changed +4
-2
lines changed
src/main/java/com/contentstack/sdk Expand file tree Collapse file tree 2 files changed +4
-2
lines changed Original file line number Diff line number Diff line change 55 <modelVersion >4.0.0</modelVersion >
66 <groupId >com.contentstack.sdk</groupId >
77 <artifactId >java</artifactId >
8- <version >2.0.2 </version >
8+ <version >2.0.3 </version >
99 <packaging >jar</packaging >
1010 <name >contentstack-java</name >
1111 <description >Java SDK for Contentstack Content Delivery API</description >
Original file line number Diff line number Diff line change 44import org .json .JSONObject ;
55
66import java .util .List ;
7+ import java .util .Map ;
78import java .util .logging .Level ;
89import java .util .logging .Logger ;
910
@@ -105,7 +106,8 @@ private void extractSchemaArray() {
105106 private void extractContentObject () {
106107 try {
107108 if (receiveJson != null && receiveJson .has ("content_type" )) {
108- JSONObject jsonObject = receiveJson .getJSONObject ("content_type" );
109+ Object contentTypeObject = receiveJson .get ("content_type" );
110+ JSONObject jsonObject = new JSONObject ((Map <?, ?>) contentTypeObject );
109111 if (jsonObject != null ) {
110112 contentObject = jsonObject ;
111113 }
You can’t perform that action at this time.
0 commit comments