android json 数据 传给 服务器

这样的JSON 字符串 传给服务器 怎么弄 , 不会拼 啊 。 跪求 大神 解答。。

{
"comment":
{

    "content": "测试",
    "contentId": "31"
},
"username":"helloworld",             
"category":{
    "id":"11"
}

}

这个解释的挺详细

 http://www.open-open.com/lib/view/open1326376799874.html

http://blog.csdn.net/xiazdong/article/details/7723545

直接传json格式的字符串就可以,把请求头设置成json如:response.setContentType("text/json; charset=UTF-8");

晕死,一堆的jar包 对象直接封装成json串

json字符串直接传到后台,然后用jar 再转换下。

用Gson的toJson方法可以把对象转变为json

百度一下 一大把 http://blog.csdn.net/xiazdong/article/details/7723545