Union into a lower level of the JSon Structure
Hi there,
I am having a mapper generating a JSon structure such as a table.
I needed to have another information into it that was gathered using a union. However, the union is adding into the structure on same level. How can I add to the structure but on a lower level.
See current result:
[{, …}, {, …}, {, …}, {, …}, {, …}, {content:myfile\n}]
{BEGIN_DATE:2012-12-04 15:56:35, STATUS:OPEN, MAIL_STATUS:ERROR, FROM_USER:SERVICE, Account1, TO_USER:FIGUERAS, RACHEL, MESSAGE_NAME:NOTIFICATION, SUBJECT:Notification de workflow :…}
{BEGIN_DATE:2012-12-04 14:30:35, STATUS:OPEN, MAIL_STATUS:ERROR, FROM_USER:SERVICE, Account1, TO_USER:FIGUERAS, RACHEL, MESSAGE_NAME:NOTIFICATION, SUBJECT:Notification de workflow :…}
{BEGIN_DATE:2012-12-04 14:30:35, STATUS:OPEN, MAIL_STATUS:ERROR, FROM_USER:SERVICE, Account1, TO_USER:FIGUERAS, RACHEL, MESSAGE_NAME:NOTIFICATION, SUBJECT:Notification de workflow :…}
{BEGIN_DATE:2012-12-04 14:27:48, STATUS:OPEN, MAIL_STATUS:ERROR, FROM_USER:SERVICE, Account1, TO_USER:FIGUERAS, RACHEL, MESSAGE_NAME:NOTIFICATION, SUBJECT:Notification de workflow :…}
{BEGIN_DATE:2012-12-04 14:27:33, STATUS:OPEN, MAIL_STATUS:ERROR, FROM_USER:SERVICE, Account1, TO_USER:FIGUERAS, RACHEL, MESSAGE_NAME:NOTIFICATION, SUBJECT:Notification de workflow :…}
{content:myfile\n}
I would like the last bit being : {content:myfild\n} to be on a lower level, eg:
[
[{, …}, {, …}, {, …}, {, …}, {, …}], {content:myfile\n}
]
So I could use $.1 for the table filling, and still use the content bit as a variable, but not as part of the same structure.
Thanks,