0

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};
entio
  • 3,816
  • 1
  • 24
  • 39
Alice
  • 207
  • 2
  • 3
  • 10

0 Answers0