'Converts this object to its json representation following the Telegram API guidelines described here:
https://core.telegram.org/bots/api#inlinekeyboardmarkup
:return:'

def to_json(self):

    json_dict = {'inline_keyboard': self.keyboard}
    return json.dumps(json_dict)
