Update JsonSerializer.php

Add missing use-clause for the Exception-class.