This is my JSON string who represent just a simple List:
{"accelerationsList":"[-3.1769, 3.304, 6.3455997, 3.1701]"}
And this is my C# code to deserialize it:
HttpContent requestContent = Request.Content;
string jsonContent = requestContent.ReadAsStringAsync().Result; // i know about deadlock...
List<float> accelerationsList = new JavaScriptSerializer().Deserialize<List<float>>(jsonContent);
I dont know why my accelerationsList is empty! Any suggestions?