Update or add properties to a JSON file