asp.net web api - How post json data without column names using webapi? -
i had method post json data using webpi, when data data pushing mobile application in json format without columns names , how can receive , post in database in webapi? possible that? receiving data in below format?
{ "12122", "2000", "", "17.3660°n", "15", "56654", "cash", "", "78.4760°e" }
you're receiving json serialized collection of strings.
long can guarantee order, could this.
in controller, have post method accept array of strings type, , traverse index.
public httpresponsemessage post(string[] data) { var col1 = data[0]; var col2 = data[2]; }
Comments
Post a Comment