Which GitHub Actions expression function converts an object to a JSON string for debugging output?
Select an answer to reveal the explanation.
Short Explanation
toJSON() is the developer's X-ray vision — dump any context object to readable JSON so you can see exactly what's in it.
Full Explanation
GitHub Actions provides 'toJSON()' to serialize any context object or value into a JSON string. It's commonly used in debugging: '${{ toJSON(github) }}' prints the entire github context. The counterpart 'fromJSON()' parses a JSON string back into an object, often used to create dynamic matrices. 'stringify()', 'json()', and 'serialize()' are not valid GitHub Actions expression functions. Other built-in functions include contains(), startsWith(), endsWith(), format(), join(), hashFiles().