finally did it, proper json is outputted, with hierarchical listing of each season and episode