解决方案 »

  1.   

    {
        "str": "str",
        "str": "str",
        "str": "str",
        "list": [
            {
                "str": "str",
                "str": "str",
                "str": "str"
                
            },
            {
                "str": "str",
                "str": "str",
                "str": "str"
                
            }
        ]
    }
      

  2.   

    能不能详细点啊。。小白一个。我的web端定义的json是map类型的,然后用response.setContentLength(),response.getOutputStream.write(byte []b);然后在安卓客户端获得传过来的值,所以我以为一下只能传一个。要是多传的话客户端和Web端要怎么设置啊。。谢谢了~~~
      

  3.   

    你传多个是怎么回事,map和list本来就是集合能装很多东西,你可以把数据都装到里面,一起传回来
      

  4.   

    JSON是可以嵌套的。你在WEB端把相应的数据塞到map中用工具(gson)转成JSON字符串传到Android就可以了。