[#9406] - JSON exporter cannot export to arrays of values

Category:
Enhancement request
Priority:
Normal
Status:
Confirmed
Project: Severity:
Minor
Resolution:
Open
Component: Reproducibility:
Always
Assigned to:

Using a schema like:

{
Group: {
_type: 'array',
_children: {
_type: 'object',
Row: 'value'
}
}
}

data can be exported to a format like:

{
"Group": [
{ "Row": "data_for_row_1"},
{ "Row": "data_for_row_2"},
{ "Row": "data_for_row_3"},
...
]
}

which is an array of objects.

The format required for a project (external requirements, can't change them) would be:

{
"Group": [
"data_for_row_1",
"data_for_row_2",
"data_for_row_3",
...
]
}

which is an array of values.

JasperReports does not seem to support such an export format as it rejects any schema which contains arrays which do not have children of type object.

Is there a way to achieve an export to an array of values with the current state of JasperReports?
Can JasperReports be tweaked to achieve this?

If not, I would name this capability an item for the Feature Wishlist.

v6.2.1
JSON Metadata Exporter
kralan's picture
2
Joined: Feb 27 2017 - 12:28pm
Last seen: 2 years 11 months ago

1 Comment:

#1
  • Status:New» Confirmed
  • Assigned:nobody» narcism

This is not possible to achieve with current code. However it can and, most likely, will be enhanced to allow this.

Feedback
randomness