Adding json check when github payload is sent