I am looking to pass a serializeArray form, essentially:
$.each($('#myform').serializeArray(), function () {
json[this.name] = this.value;
});
var param = "{\"form\":" + JSON.stringify(json) + "}";
to a WCF service. My goal is to pass param to a WCF method and them parse everything inside of param, or what was passed. I would be tough to create a class of object type because the form can change. Any help with this is great!
I’d check out json.org for a parser. I use Json.NET
Here is an example of what I think you are talking about:
This will iterate over whatever you have in your JSON object and output the
Tokenand theValue. In this case you will get this: