wp-includes/class-json.php:310encodes an arbitrary variable into JSON format without JSON Header - warning - may allow XSS!!!!)
$varmixedmixed function encodeUnsafe($var) { _deprecated_function( __METHOD__, '5.3.0', 'The PHP native JSON extension' ); // see bug #16908 - regarding numeric locale printing $lc = setlocale(LC_NUMERIC, 0); setlocale(LC_NUMERIC, 'C'); $ret = $this->_encode($var); setlocale(LC_NUMERIC, $lc); return $ret; }Unchanged from 6.7.7 through 7.1.0.
Signature, return type and hooks compared across 5 parsed releases.
src/wp-includes/class-json.php, and regenerated for each WordPress release so it tracks the code rather than a snapshot of it.