Handling MQ string

Hello,

Does anyone know and have examples of how to parse or handle mq string that contains information like headers and details records. This would be an integration accomplished on the EAI side using the MQSeries adapter. Any input and suggestions would greatly be appreciated. Thanks in advance.

Legacy system put a message of the following structure:
Header
Detail

The above structure is hierarchical and Detail is nested in Header. Is this (nested array structure) supported by MQ adapter for enterprise? Anyone figure out a workaround? Thanks in advance.