We're sorry GroupDocsApp doesn't work properply without JavaScript enabled.

Free Support Forum - groupdocs.app

Assembly lib does not accept JSON data source object with a single array property

Assembly lib does not accept JSON data source object with a single array property.

When I try to run the MainClass.simpleJsonDS_Demo() I get the following error:

Exception: An error has been encountered at the end of expression ‘in managers]>’. Can not get the value of member ‘managers’ on type ‘class com.groupdocs.assembly.system.data.DataRowCollection’.

But if I add another property next to managers property no matter if I put it before or after the exception disappears.

To get the same scenario it is necessary to just change the ManagerData.json and change line 2619 removing the “managers” argument from the call to construct DataSourceInfo. Ex: DataSourceInfo dataSourceInfo = new DataSourceInfo(datasource);

Data source: datasource.zip (418 Bytes)
Template: SimpleDatasetDemo.docx (11.9 KB)

This topic has been moved to the related forum: https://forum.groupdocs.com/t/assembly-lib-does-not-accept-json-data-source-object-with-a-single-array-property/10386