This is my json value,
{"test":"ruslan","status":"OK"}
How to get "test" value?
And this is my httpclient code to acces api
AsyncHttpClient client = new AsyncHttpClient();
client.setBasicAuth("user01", "pwd01");
client.get("http://localhost/web/api/getsession", new AsyncHttpResponseHandler() {
@Override
public void onSuccess(int statusCode, Header[] headers, byte[] responseBody) {
// in this section, I want to store test value from json to a variable
@Override
public void onFailure(int statusCode, Header[] headers, byte[] responseBody, Throwable error) {
Log.d("Status", "failure");
}
});