#Convert string to objects
1 messages · Page 1 of 1 (latest)
is this json ?
also, why are you using such an old version of java ?
it is a string not json
yes that's a string, but are you sure that it isn't json ? where did you get it ?
try (
BufferedReader reader = new BufferedReader(
new InputStreamReader(httpConnection.getInputStream())
)
) {
for (String line; (line = reader.readLine()) != null; )
result.append(line);
}
return result;
Detected code, here are some useful tools:
Formatted code
try (BufferedReader reader = new BufferedReader(new InputStreamReader(httpConnection.getInputStream()))) {
for (String line; (line = reader.readLine()) != null ; ) result.append(line);
}
return result;
can you tell me which website is this ?
it is from localhost server, and the original response is as the example provided above not a json object
then which langage is this ?