Few Changes regarding PDF view and backward compatibility for jsonSerializable in php 5.2