I'm trying to parse a simple JSON response.
The result string is
{"Success":false,"Response":"Error"}
And I've built the class
class JsonResponse
{
public bool cSuccess { get; set; }
public string cResponse { get; set; }
}
And parse with the code
JsonResponse message = new JavaScriptSerializer().Deserialize<JsonResponse>(result);
However only message.cSuccess
is populated with false, while message.cResponse
is still null.
Is there any mistake I've made?