i have 4 strings in my application like this that i want to pass to my js file
$a1=\'[10,20,13,14]\'; $a2=\'[17,15,14,16]\'; $a3=\'[18,24,16,17]\'; $a4=\'[15
return "{ A1: '[10,20,13,14]', A2: '[17,15,14,16]', A3: '[18,24,16,17]', A4: '[15,54,18,27]' }";
Though you could also just pass these as actual arrays by removing the quotes.