I have a JavaScript script that makes a jQuery AJAX call, and passes a serialized javascript object in the "data" property:
data: { Specific: JSON.stringify({DAY: "1", DEP: "2", CARRIER: "3", FLT: "4", LEGCD: "5"})
It is received in a C# Generic Handler thusly:
var Specific = JsonConvert.DeserializeObject(context.Request.Params["Specific"]);
In the Generic Handler, within Visual Studio debugger, I can see the received object.
Specific = {{ "DAY": "", "DEP": "", "CARRIER": "", "FLT": "", "LEGCD": "" }}
My question is, how do I reference the received object's properties (DAY, DEP, FLT, etc)?
I tried Specific.DAY
, and Specific["DAY"]
, with no success.