Avoid destroy the whitespaces when write back the JSON file.
Added tests for respecting whitespaces in version files.
Merge pull request #7 from garryyao/fix/whitespace-usage

Changes to follow whitespaces usages of the original JSON file.