-1
JSONObject jsonObj = new JSONObject();
jsonObj.put("email", email);
jsonObj.put("password", password);
// Create the POST object and add the parameters
HttpPost httpPost = new HttpPost("http://api.readfa.st/session");
StringEntity entity = new StringEntity(jsonObj.toString(), HTTP.UTF_8);
entity.setContentType("application/json");
httpPost.setEntity(entity);
HttpClient client = new DefaultHttpClient();
HttpResponse response = client.execute(httpPost);`
目前我正在一个android项目,我需要通过数组用户[电子邮件],用户[密码]使用json的网页...请如果任何人可以帮助我宽度这个尽快..谢谢!传递一个字符串数组使用json
详细描述你的问题.... – Richa 2012-01-06 09:53:35