Import from JSON

Dear all,

First of all: Happy new year!

Based on this documentation part: FromJSON | ONLYOFFICE
I need help to import a json tag-value as a variable.

e.g.: put a json in a subfolder called “json” and this file contains financial data like “Total revenue”.
"totalRevenue":{"q1":26725000000.0

The macro imports the data and fills a field in the Onlyoffice doc which I can insert whereever I need it in the text document.
To update the document with current data, running the macro will do the job.

Is that feasible ?

Cheers

Gabriel

Hello @promexio,

FromJSON methods don’t work with custom json content. Their purpose is to import JSON objects created with ONLYOFFICE API like ToJSON | ONLYOFFICE or ToJSON | ONLYOFFICE