Código HTML:
[ { caption: 'desert.jpg', width: '120px', url: 'http://localhost/avatar/delete', // server delete action key: 100, extra: {id: 100} }, { caption: 'jellyfish.jpg', width: '120px', url: 'http://localhost/avatar/delete', // server delete action key: 101, extra: function() { return {id: $('#id').val()}; }, } ]
Código HTML:
$(this).find('fichero').each(function () { preInitialPreviewConfig.push([{ caption: $(this).find('caption').text(), url: $(this).find('url').text(), size: $(this).find('size').text() }]); });
Tiene forma de JSON, pero no es un objeto JSON.