I got it weeks ago, and I feel that I should post my solution here for future use.
My JSON Response structure is a list of key value pairs, so what I did is
List<HashMap<String,String>> map=restTemplate.porsForObject(url,mvm,List.class);
The JSON response was converted into a map. So it is easy now to access the data by doing this.
String data= (Hashmap) map.get(position).get(key);