/* This function returns the string of Redfish service version. */
EFI_STATUS RedfishGetServiceVersion(IN REDFISH_SERVICE RedfishService, OUT CHAR8 **ServiceVersionStr)
/* This function returns the string of Redfish service version. */
EFI_STATUS RedfishGetServiceVersion(IN REDFISH_SERVICE RedfishService, OUT CHAR8 **ServiceVersionStr)
{
  redfishService  *Redfish;
  CHAR8           **KeysArray;
  UINTN           KeysNum;
  if ((RedfishService == NULL) || (ServiceVersionStr == NULL)) {
    return EFI_INVALID_PARAMETER;
  }
  Redfish = (redfishService *)RedfishService;
  if (Redfish->versions == NULL) {
    return EFI_INVALID_PARAMETER;
  }
  KeysArray = JsonObjectGetKeys (Redfish->versions, &KeysNum);
  if ((KeysNum == 0) || (KeysArray  == NULL)) {
    return EFI_NOT_FOUND;
  }
  *ServiceVersionStr = *KeysArray;
  return EFI_SUCCESS;
}