Creative Communities of the World Forums

The peer to peer support community for media production professionals.

Forums Adobe After Effects Expressions Parsing JSON Files – Fastest possible way?

  • Parsing JSON Files – Fastest possible way?

  • Andrei Popa

    September 13, 2021 at 7:53 am

    Hi Tomas. I think I got confused at some point with my answers. I just checked on my code and I use $.evalFile() to read the json’s. I remember doing some tests and that I used what was fastest. This is how I use it:

    var alpha = $.evalFile(File("path/to/file/json.json"));

    However, if you ever need to take the whole content of a file again, I suggest reading it with

    var str = fileObj.read();

    It reads the whole file in one go.

    Here is a link with the description, page 53

    JavaScript Tools Guide (macromedia.com)

    I don’t think evalFile will work with the new expressions engine so maybe you will need to use the eval([string]) version if you want to use it in expressions.

Viewing 11 of 11 posts

Log in to reply.

We use anonymous cookies to give you the best experience we can.
Our Privacy policy | GDPR Policy