I have
var data = '[
{ cod: 2, tipo: 'MAÑANA' },
{ cod: 4, tipo: 'NOCHE' },
{ cod: 3, tipo: 'TIENDAS V.O.' }
]';
When doing the json pass I get an error:
var aData = JSON.parse(data);
With eval goes well.
var data = eval(data);
What is the problem with parse?