APIClient: Fixing a problem with getString

The javax does not handle parsing JsonValue directly. So it is replaced
for the getString with a direct removal of the quotations.

The alternative is to replace the javax parser with a different one.

Signed-off-by: Amnon Heiman <amnon@cloudius-systems.com>
Signed-off-by: Pekka Enberg <penberg@cloudius-systems.com>
This commit is contained in:
Amnon Heiman 2015-09-13 20:30:48 +03:00 committed by Pekka Enberg
parent 2058cdde7c
commit 3e326bf2d0

View File

@ -117,7 +117,8 @@ public class APIClient {
}
public String getStringValue(String string, MultivaluedMap<String, String> queryParams) {
return getReader(string, queryParams).toString();
return getRawValue(string,
queryParams).replaceAll("^\"|\"$", "");
}
public String getStringValue(String string) {