I have a serialized form:
formObj = $("#form_add").serialize();
Then I created wrapped object with two objects (one is object, the second is string formObj):
var json = {};
var wrapperObj = {json: json, form: formObj};
After all I pass this object to data
parameter:
data: JSON.stringify(wrapperObj)
How to build object from serialized string formObj
in the following line?
var wrapperObj = {json: json, form: formObj};