/* Any changes to the returned string will impact the original JSON value. */
CONST CHAR8* EFIAPI JsonValueGetAsciiString(IN EDKII_JSON_VALUE Json)
/* Any changes to the returned string will impact the original JSON value. */
CONST CHAR8* EFIAPI JsonValueGetAsciiString(IN EDKII_JSON_VALUE Json)
{
  CONST CHAR8  *AsciiStr;
  UINTN        Index;
  AsciiStr = json_string_value ((json_t *)Json);
  if (AsciiStr == NULL) {
    return NULL;
  }
  Index = 0;
  while (*(AsciiStr + Index) != '\0') {
    if (((*(AsciiStr + Index)) & 0x80) != 0x00) {
      return NULL;
    }
    Index++;
  }
  return AsciiStr;
}