Testing data dump to see why JSON encode doesn't understand root element