Rewrote parsing - modified data structure to be a plain json array with hidden metadata properties.
redefined tree toSting function