@ymphyow wrote:
I am trying to pass array list parameter . parameter codeList contains array like [{“projCode”:“11-1115”,“cblTagNo”:“571_GE001-RC1”},{“projCode”:“11-1115”,“cblTagNo”:“571_GE001-S”}] . but I am facing the error
" invalid params object, needs to be an object with strings".
May I know how to pass the obj array. Here is my http call method.this.http.setDataSerializer('json'); console.log(JSON.stringify(codeList)); return this.http.get('http://hostname/cable/v2/cableschedule/key/',codeList,{}); }
I have tried this way . It didn’t work as well. ->
return this.http.get(‘http://hostname/cable/v2/cableschedule/key/’, JSON.stringify(codeList), {});
Posts: 1
Participants: 1