Quantcast
Channel: Adobe Community : Discussion List - After Effects Scripting
Viewing all articles
Browse latest Browse all 2143

How to avoid parsing the json file

$
0
0

Dear colleagues,

the starting point of my AE script is the loading the dictionary.json file which is roughly 1.1 Mb data file with coordinates of font letter splines.

 

What I do is as follows:

 

 

   var scriptFile = File('mypath\\dictionary.json');

    scriptFile.open('r'); 

    var content = scriptFile.read(); 

    scriptFile.close(); 

   

  var font = JSON.parse(content)

 

 

Unfortunately when I use the command JSON.parse(content)  the parsing time is huge.

Can I avoid this parsing procedure?

May be there is the way to save dictionary file as a ready to use javascript object.

If yes, do you know how?

 

Yaroslav.


Viewing all articles
Browse latest Browse all 2143

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>