Best JSON format for Data Source

Stimulsoft Reports.JS discussion
Post Reply
szalap
Posts: 16
Joined: Fri Oct 04, 2024 8:01 am

Best JSON format for Data Source

Post by szalap »

Hi,

We are looking into having a template built using JSON Data Source. I was wondering what would be the best format of JSON we should go for, so we do not end up fighting relationId battles. Should it have all the nodes nested (attachment: DataWithProperties.json) or can it reference ids from top level nodes (attachment: DataWithReferences.json).

Is there any tutorial or documentation on this topic?
Attachments
DataWithReferences.json
(759 Bytes) Downloaded 83 times
DataWithProperties.json
(1.03 KiB) Downloaded 82 times
Lech Kulikowski
Posts: 7292
Joined: Tue Mar 20, 2018 5:34 am

Re: Best JSON format for Data Source

Post by Lech Kulikowski »

Hello,

When you use JSON with nested objects, all relations will be added automatically (DataWithProperties). In other case, you should add it manually (DataWithReferences).

Thank you.
Post Reply