Make the dumped JSON even more pretty

This matches the options used by Composer when dumping the JSON file
Merge pull request #2 from stof/patch-1

Make the dumped JSON even more pretty