json on premier cep Parsing issue
hi ,
i'm trying to parse array from js to jsx
the pasring works Great with Aftereffects CEP
however in Premier pro it doesn't work if the data came from
i simplified the code to those lines thisis .jsx
#include 'json2.js';
function jsontest( ) {
var randomarray = [3,5,7] ;
var arraystrinfied = JSON.stringify(randomarray) ;
var myJSON = '["shark","fish","dolphin"]' ;
var obj = JSON.parse(arraystrinfied); // this doesn't work
//var obj = JSON.parse(myJSON); this works just fine
alert(obj[1]);
}note that the same code above works fine in After effects
what is it i'm missing ?


