如何将字典json对象发送到android中的params

时间:2016-03-04 12:54:13

标签: android json dictionary

我不知道如何将字典json数据发送到这个facebookData params。我已经在下面发布了相关代码。请检查:

PARAMS:

 params.put("email", "exampleEmail@gmail.com" );

params.put("facebookData", facebookData );  -->I need to pass the dictionary json object to this facebookData

字典JsonData:

{
  "email":"exampleEmail@gmail.com",

"facebookData":{
      "about" : "duration",
    "access_token":"aklfnlanfklmskladfnmklankflnklafnklanklsfklk",
    "age":28,
    "birthday":"563221800",
    "email":"myexampleemail@gmail.com",
    "facebook_user_id":"561394210664929",
    "first_name":"Bradley",
    "gender":"male",
    "id":"561394210664929",
    "is_show_only":"Men and Women",
    "latitude":"13.05505200",
    "longitude":"80.23623600",
    "name":"Bradley Cummings",
    "profilePicture":"some picture for eg",
    "provider":"Facebook"
}
}

到目前为止,我尝试过,直接将字符串中的值设置为该params。但它对我不起作用。

任何人都可以帮助我。谢谢。

0 个答案:

没有答案