Added functionality to save page structure as JSON. (Needed for X-PERT
page level comparisons)