Currently the e2e treedump library outputs in a custom format. Move to using json since that will be easily consumable from JS.