Dear Ritu,
The first solution I described will work even without the additional separator. You would only have to differentiate the header and items in the mapping.
The additional separator is only required to simplify the implementation a bit.
Regards,
Greg