/**
     * 解析申请分配座位席别
     * @param json
     * @return
     */
    public static TrainOrderResponse getTrainOrder(String json){
        TrainOrderResponse response=new TrainOrderResponse();
        Gson gson=new Gson();
        try {
            JSONObject jsonObject = new JSONObject(json);
            response = gson.fromJson(jsonObject.getString("Res"),TrainOrderResponse.class);
        } catch (Exception e) {
            // TODO: handle exception
            e.printStackTrace();
            System.out.println(e);
        }
        return response;
    }

 

posted on 2014-04-04 11:19  青年程序猿  阅读(301)  评论(0编辑  收藏  举报