I’am using Facebook sdk for android and I want to know if there is json library included,
this is my returned json string, how can I extract UID ?
{
"id": "111513307",
"name": "kevin Zhioua",
"first_name": "kevin",
"last_name": "Zhioua",
"link": "http://www.facebook.com/kevin.zhioua",
"username": "kevin.zhioua",
"gender": "male",
"email": "mimo23_est@hotmail.com",
"timezone": 1,
"locale": "fr_FR",
"verified": true,
"updated_time": "2011-11-14T17:42:27+0000"
}
There is an available library in Android to handle JSON, you may use it like this:
P.S – don’t forget to
import org.json.JSONObject;