Map (JavaScript) -- since JavaScript has already done the conversion to
a Map and needs no further JSON parsing.
// Get the JSON string from the response object or directly from the
// client (JavaScript)
// 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
? clientResponse.getEntity(Map.class)
: null);
String responseString = (jsonObj == null