0
我從服務器獲取訪問令牌信息一個byte []迴應:響應字節[]爲String []
@Override
public void onSuccess(int statusCode, Header[] headers, byte[] response) {
Log.d("RESPONSE: ", new String(response));
}
的迴應是:
D/RESPONSE:﹕ {"access_token":"8863e1a8c16e2ce70b4d5a04a209e265bc1efe91","expires_in":3600,"token_type":"Bearer","scope":null}
我怎麼能分析該響應輕鬆獲得響應的任何對象(access_token,expires_in,token_type,scope)?
貌似JSON數據,用[GSON](https://code.google.com/p/google- gson /)解析。 – initramfs