save backup in pretty JSON

fixes #50