switched reading phedex in json format