I currently have an asmx method defined like so :
[WebMethod]
public String Method1(Hashtable form)
It receives json objects with a variable number of attributes, for example :
{"form":{"name1":"10","name2":"20"}}
This is working fine and gives the expected results when called, but when I open the web service address in the browser, I get the error :
The type System.Collections.Hashtable is not supported because it implements IDictionary
I've tried other data types, like List<DictionaryEntry>
which will fix this, but then be empty when the method is called, and I can't find something that will work in both cases...
What is the "correct" way of doing this?