If a port didn't exist in the json it was causing an error because I didn't consider that case.  Really fixed this time