'Creating a JSON representation of an instance of Credentials.
Returns:
string, a JSON representation of this instance, suitable to pass to
from_json().'

def to_json(self):

    return self._to_json(Credentials.NON_SERIALIZED_MEMBERS)
