Java获取JSON参数
1 String line;
2 StringBuilder builder = new StringBuilder();
3 BufferedReader reader = new BufferedReader(new InputStreamReader(reqeust.getInputStream()));
4 while((line = reader.readLine()) != null) {
5 builder.append(line);
6 }
2 StringBuilder builder = new StringBuilder();
3 BufferedReader reader = new BufferedReader(new InputStreamReader(reqeust.getInputStream()));
4 while((line = reader.readLine()) != null) {
5 builder.append(line);
6 }