I have two arrays,
id = [1,2,3]
pass = [a,b,c]
How do i convert it into below json structure, where it should start with '[
' and end with ']
',
[
{
"user": "1",
"password": "a"
},
{
"user": "1",
"password": "a"
},
{
"user": "1",
"password": "a"
}
]