In a datatable there are some columns with inputs. If I click the Submit button I will serialize the inputs of the lines that are marked checkbox. 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 to turn this into a JSON? The ideal would be to keep 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.