I have a json object:
{"Result":{"code":0,"description":"success"} , "Tickets":[{ "TicketDetails":[ {"Key":"tknum","Value":888}, {"Key":"tkDescription","Value":"test"}, ], "Requestor":[ {"Key":"name","Value":"abc"}, {"Key":"add","Value":"xyz"}, ] }, { "TicketDetails":[ {"Key":"tknum","Value":333}, {"Key":"tkDescription","Value":"test1"}, ], "Requestor":[ {"Key":"name","Value":"abc2"}, {"Key":"add","Value":"xyz3"}, ] } ] } I dont want to use JSON Parser. Is it possible to read this JSON directly to a java pojo. Example:
ObjectMapper mapper=new ObjectMapper(); TicketInfo info=mapper.readValue("above Json object",TicketInfo.class);