I guess I am looking for a best method of passing values: arrays, objects, JSON -- any data -- from PHP to javascript.
So far I've just seen:
PHP - json_encode(value);
Javascript - eval()
and a variation of that by using json2.js or the alike.