Gets the list of parameters serialized to json
===

I have a C# method called 

>  Void getCompanyAddresses(int iCompanyId, int iPersonId, string PersonName)

What i want to create is JOSN data for current methods parameters and its values, for above example JSON object is like

> {"iCompanyId":1214,"iPersonId":51,"PersonName":"Chetan"}

I also need to check the total size of parameters & its values are not greater than 1 MB.


Thanks. 