I have values of form as follow
<input name="Document[0][category]" value="12" type="text">
<input name="Document[0][filename]" value="abca.png" type="text" >
I want to serialize it to an object by js or jquery.
Document[0]={
category : 12
filename : 'abca.png'
};
I try use serializeArray and parse to object but no good
'abca.png'come from?!?