java - Getting error while deserializing an json Object -


i having json structure of

{"data":[{"name":"value"}]} 

and pojo class json is

public class requestparamsdto implements serializable {      private static final long serialversionuid = -2440599796986757919l;      private object name;       public object getname() {         return name;     }      public void setname(object fields) {         this.name = fields;     } } 

here while deserializing json throws error,i found declaring object datatype leads issue,if change string or integer worked,whether 1 had issue?

reason declared name object name parameter contain string or integer dynamically in run time,i have written logic depands on it. 


Comments

Popular posts from this blog

javascript - Jquery show_hide, what to add in order to make the page scroll to the bottom of the hidden field once button is clicked -

javascript - Highcharts multi-color line -

javascript - Enter key does not work in search box -