Design
Grouping
Group by any item of your data or change the orginal structure of the JSON data source
COMMUNITY FEATURE
Available for:
Carbone Cloud
Carbone On-premise
Embedded Carbone JS
v5.0+ NEW
Group and sum
A custom iterator can be used to group rows based on the value of a specific attribute (in this case, brand
).
Additionally, with aggregator formatters, you can sum quantities:
Transform the result of a database
Since 4.23.0+ with activated pre-release tag
Carbone can also transform the JSON with the :set
formatter. More information here.
For example, if the JSON is a flat array coming directly from a database (MySQL, MariaDB, PostgreSQL, Oracle, MS SQL), Carbone can build a hierarchical JSON with just a few lines of code!