Changes to support auto updating the build version.
Fixed an issue with the toJson() method returning an invalid JSON
object.