Add json extension to composer requirements.

This is required by the new version getter.