0
In a datatable there are some columns with inputs. If you click the Submit button I will serialize the inputs of the lines that have checkbox marked. The return of the serialize:
'id=1596&inputCodPag=dwad&inputDtPagto=22-03-2018&inputDtMalote=&inputTpPagamento=BB&id=2045&inputCodPag=dwad&inputDtPagto=&inputDtMalote=&inputTpPagamento=SAP'
What I want to know is, how do you turn this into a JSON? The ideal would be to maintain in the following structure:
[{id:1596,inputCodPag:dwad,inputDtPagto:'22-03-2018',inputDtMalote:'',inputTpPagamento:'BB'},{id:2045, inputCodPag:'dwad', inputDtPagto:''.inputDtMalote:'',inputTpPagamento:'SAP'}]
Thank you.
are very different things... how about starting by separating the string with
split("&")
, read each value and mount the object?– Ricardo Pontual