Fixed json encoder output for php <= 5.3.

Update the composer.json and Packager encoder.