joomla/joomla-platform — pull request #1025 by realityking (2012-03-22 23:12:02+00:00)
Title: Implement the JsonSerializable interface in JRegistry

This is would be the first use of one of the new PHP 5.4 features, but it maintains compatibility with PHP 5.3.

How to use:

´´´
$a = new JRegistry();
$a->set('foo', 'bar');
echo json_encode($a);
´´´

This isn't immediately useful since PHP 5.4 is very rare for now, but it may be appreciated by someone building a custom app who runs 5.4.