1. A method of formatting rich text data into a JavaScript Object Notation (JSON) array, the method comprising: creating a parent JSON object within the JSON array; identifying header information defined as a field of the rich text data and representing the header information in a root property of the parent JSON object; identifying a plurality of parts of the rich text data and, for each of the plurality of parts of the rich text data: via a processor, identifying content of the part, inserting into the parent JSON object a first respective child JSON object, and representing the content of the part in a content property of the respective child JSON object; and identifying header information of the part and representing the header information in a header property of the respective first child JSON object; wherein the children JSON objects are organized into a JSON array within the parent JSON object; and outputting the JSON array in a JSON file.
4. The method of claim 1 , further comprising: identifying that the rich text data contains only multipart/mixed or multipart/related data types; and assigning to the respective first children JSON objects a contentDisposition property having at least one attribute that indicates relationships among respective parts of the rich text data.