Merge pull request #1057 from who/fix_1056

Fixing a bug with truncated lone string responses
This commit is contained in:
Tony Tam
2015-08-06 17:38:54 -07:00

View File

@@ -356,7 +356,7 @@ public class ApiClient {
}
else if(String.class.equals(cls)) {
if(json != null && json.startsWith("\"") && json.endsWith("\"") && json.length() > 1)
return json.substring(1, json.length() - 2);
return json.substring(1, json.length() - 1);
else
return json;
}