Data can be registered from a JSON string you have already fetched — for example from a REST API — and the report's dictionary synchronized to it.

Fetch JSON, then register and synchronize.
var report = new Stimulsoft.Report.StiReport();

fetch('../reports/Demo.json')
    .then(response => response.json())
    .then(result => {
        var dataStr = JSON.stringify(result);
        report.loadFile('../reports/SimpleListEmptyDictionary.mrt');
        report.regJsonData('Demo', dataStr, true);   // true = synchronize dictionary
        viewer.report = report;
    });

How it works. The report binds to data you fetched yourself, so it works with any REST endpoint or in-memory JSON without the engine issuing its own request.

By using this website, you agree to the use of cookies for analytics and personalized content. Cookies store useful information on your computer to help us improve efficiency and usability. For more information, please read the privacy policy and cookie policy.