To read CSV data from a file stored in Google Drive, you first need to get the file’s content as a string, then parse it.
In Google Apps Script, manipulating JSON is a straightforward process, largely due to the native support JavaScript provides for JSON parsing and stringification.
Since Google Apps Script is essentially JavaScript with access to Google’s suite of apps, working with TOML directly within Google Apps Script requires a bit of ingenuity.
Google Apps Script provides the XmlService to work with XML data.
XmlService
While Google Apps Script (GAS) doesn’t natively support YAML parsing or serialization, you can manipulate YAML data by using JavaScript libraries or writing custom parsing functions.