JsonUtils: remove one .toJson() method

Use instanceof instead to determine whether the Object as an argument implements
JsonSerializable.