如何json数据存储到sqlserver?
取出对应的值 然后去存储就可以了
JSONArray jsonArr = new JSONArray().fromObject(jsonString);//jsonString json字符串Object[] objjson=jsonArr.toArray();for(int i=0;i< objJson.lenght -1;i++){ JSONObject json=new JSONObject().fromObject(obj1[i]); //实例化你的数据库对象 User user = new User();//例如啊 user.setName(json.get("name"));}