MediaWiki:Apihelp-expandtemplates-paramvalue-prop-encodedjsconfigvars

From Joke5.co.uk

Gives the JavaScript configuration variables specific to the page as a JSON string.