Forum Discussion

peterlu's avatar
peterlu
Champion
7 years ago

custom component, freemarker parse html assets JSON file

Hi Lithium,

 

There are several customers asking that is it possible to use a freemarker function to parse a json file in the /html/assets

I know we can put the json content in custom content. But custom content has a DB length limit.

 

Any ideas?

 

Peter

  • peterlu - Unfortunately we cannot parse any file using freemarker.  We came to the same situation, where we have used JS and endpoint to parse HTML/assets file. 

    The alternative for this could be, you can store the JSON inside custom content or inside a message body which can be directly parsed using Freemarker.