In javascript this question JSON.parse(json) will validate to fail Is there any alternative in c# when quotes are not provided for names in json object. (names indicate keys in keyvalue pairs)
{
name: "s"
}
should fail validation where as
{
"name": "s"
}
should pass validation
Tried with Newtonsoft.Json's JObject.Parse(body); but it automatically adds quotes and passes validation. I'm trying to validate according to JSON Standard RFC 4627 in c#. Wondering if there a facility to fail validation in case of not providing quotes for keys in c#