save properties as JSON