Update Json.php

Catch exception and rethrow instead of testing on null.