everyone
i have searched but not found the way how to pass 2d array in http post request. i want to sent 2d array in body of http reqeust.
Here is code
let body = JSON.stringify({outlets_attribute[][name]: outlet});<--- giving syntax error here
return this.http.post('URL',body ,{headers: this.Get_Header()});
if someone know, please guide how to handle this. Thanks!
this.http.post(url, the2dArray);? Given that what you have is syntactically incorrect, it's hard to understand what you want to achieve with that made up syntax.outlets_attribute[][name]as key, which is not a valid attribute name, and outlet as value. Moreover, I have no idea of what these variables are.