Accessing json value where attribute has ":"
I am using a REST service and it returns json formatted like this:
{
ea:productionId: "123",
....
}
How can I create a class at server side corresponding to this type of json
for parsing? I am using c#.
EDIT
This is the code I am using
JavaScriptSerializer serializer = new JavaScriptSerializer();
JsonClass result= serializer.Deserialize<JsonClass>(jsonresult);
JsonClass is the class I have created with the fields corresponding to the
attributes in the jsonresult. And the problem is, I can't create a
property with name ea:productionId as it contains :.
No comments:
Post a Comment