vf page
function createRecord()
{
j$ = jQuery.noConflict();
var formData = JSON.stringify(jQuery('#form').serialize());
MyCustomController1.createContact(formData);
}
controller
@RemoteAction
public static String createContact(String strJsonObjResult)
{
system.debug('strJsonObjResult='+strJsonObjResult);
}
DEBUG OUTPUT:
strJsonObjResult=[{"name":"firstname","value":"xyz"},{"name":"lastname","value":"xyz"},{"name":"email","value":"[email protected]"},{"name":"phone","value":"789456"},{"name":"dob","value":"2013-05-13"}]
//its showing me like so how to deserialize this?