Cleaned up `JsonTransformer.php`

Minor style and comment fixes.