I have this php array
$var = $var = explode("[;;]",$result['infoplantilla']);
$numRow = count($var);
$form = array
(
"numRow",$numRow,
"selectOption",$var,
"prefijo",$result['prefijo'],
"Sufijo",$result['sufijo'],
"Plantilla",$result['descripcion']
);
echo json_encode($form);
So when I try to return this to the ajax call it return me value something like this .
["numRow",2,"selectOption",["baners.Idbaner= INMOMEXICO.ANUNCIO.ID"," monedas.Idmoneda= INMOMEXICO.ANUNCIO.MONEDA"],"prefijo","MXSAEI","Sufijo","-14","Plantilla","SAE"]
Which is not a Json string can any one help me out where I am going wrong because supposedly I should get a Json string from the array
Thanks in Advance