fixing format of json for finicky json_decode