add checking to see i 'error' is in the json keys