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
Post a Comment