Not able to cast response to particular list object in Java -
i'm getting response webservice
[{id=100, value=1815401000238}, {id=101, value=1815401000244}] here i'm casting value list object
list<map<string, string>> leadids here i'm passing response method
serviceutil.status(leadids); leadids has above response
here method definition
public response updatestatus(list<map<string, string>> leadids) { so can cast , iterate. ,it throws me error
java.lang.classcastexception: java.util.linkedhashmap cannot cast java.util.map$entry what should casted? guess list object.
try use list<linkedhashmap<string, string>> instead of list<map<string, string>> when doing casting
Comments
Post a Comment