Report won't display if Json structure doesn't match data source

Stimulsoft Dashboards.JS discussion
Post Reply
pobber1
Posts: 19
Joined: Fri Jun 28, 2019 8:39 am

Report won't display if Json structure doesn't match data source

Post by pobber1 »

Hi,

My report won't display if my JSON contains a field that the data source in Stimulsoft doesn't define.

For example:
JSON:
Stuff: {
Field1: 1,
Field2: 2
}

Stimulsoft DataSource:
Stuff defines Field1 but not Field2

Is there a way to tell stimulsoft to ignore fields that are not defined?
Lech Kulikowski
Posts: 6238
Joined: Tue Mar 20, 2018 5:34 am

Re: Report won't display if Json structure doesn't match data source

Post by Lech Kulikowski »

Hello,

Please send your JSON file for analysis or check the following JSON string:

Code: Select all

{
	"Stuff": [{
		"Field1": 1,
		"Field2": 2
	}]
}
Thank you.
Post Reply