// Get the JSON string from the response object or directly from the
// client (JavaScript)
- Map<String, Object> jsonObj = (status == 200
+ Map<String, Object> jsonObj = (Platform.isJS() && status == 200
? clientResponse.getEntity(Map.class)
: null);
String responseString = (jsonObj == null