swap physical and logical names in json output