How to parse a Smart Expression (Use Automation Smart Values)

Hi all, I’m developing a Forge app and need to parse a string that contains Smart Values and apply the Issue values to it.

  key: {{issue.key}},
  dueDate: {{now.plusDays(5)}}

I’m researching using Mustache to parse and using the Jira expressions APIs to apply values to my string.

Do you know any public REST API or any library which helps me to parse this expression in a simpler way?

Thank you very much!