tWriteJSONField please help building thos JSON , with array and subcategories
Hello,
We have this structure that we need to create in tWriteJsonField and we cannot get exact structure. I below Json we have an array . So, Glass - is category of product there could be multiple categories . For each of this category we need to display Ship_To,ShipTo_Name.......Dec(UOM). All Values under glass category group by state. So, for state PA in this example we have 3 customers we need to list values for each . Important that at the end of each state report we need to sum all 3 customer (in this example) and show totals .
So my issue is building array and all brackets exactly as show in the example . Also how do we group like this? can anyone show how tWriteJsonField would look like to have this structure.
Another issue, i have actually json file with data in it (that was generated by other system sql server) i thought i could just import it to use that structure but talend does not let me import it.