Add JSON convertion for Credentials