[algogeeks] Re: how to convert JSONObject object to java object ??

2015-06-18 Thread Nand Kumar Singh
Rest Url : http://localhost:8080//rest/hotel?{"location":"28.666045,77.185059","longitube":null,"latitude":null,"pincode":null,"childrens":0,"adults":1,"dateCheckIn":143468460,"dateCheckOut":143472420,"searchedString":"Sarai Rohilla Railway Station, Railway Officers Colony, New Delhi,

[algogeeks] how to convert JSONObject object to java object ??

2015-06-18 Thread Nand Kumar Singh
How am i trying till now . @RequestMapping(value = "/rest/hotel", method = RequestMethod.GET) @Produces("application/json") @Consumes("application/json") public @ResponseBody List search(JSONObject inputJsonObj) throws ParseException, IOException { Gson gson = new Gson(); GsonBuilder bui