I'm making an API call to a third party service -- sending data using JSON. I have a class that I convert to JSON using System.Web.Script.Serialization namespace. The problem I'm having is this: the API I'm calling is expecting data/value pair for "public". They use this for setting security for an object i.e. public: 1 makes it readable by everyone. I think you now see the problem. I can't set the name of the property in my class to public because it has a meaning in .Net framework. But the API I'm calling is expecting a property called public.
How do I get around this?
View Complete Post