added metthods for reformatting json results from xml files.