Sometimes, when sending JSON / XML data, it may be necessary to convert from string to bool when sending true / false values via API. You can convert your string values to bool values by using the function below.
def str2bool(value):
return value.lower() in ("yes", "true", "t", "1")
You can click for our high-performance virtual servers.
You have examined the knowledge base in detail, but if you cannot find the information you need,
Create a Support Ticket