I have a setup with multiple form fields..
<input type='text' id='Trait1' >0</input>
<input type='text' id='Trait2' >1</input>
<input type='text' id='Trait3' >2</input>
<input type='text' id='Trait4' >3</input>
(data used is just for example)
When I use
$.JSON.Stringify(form.serializeArray());
I get something like..
[{'name','Trait1','value','0'}]
etc.
This doesn't translate well, because everything trying to deserialize it from json sees the 'name' and 'value' as the actual objects (where 'trait1' and '0' are the actual objects).
Is there anything I can do?