Uses json.net to save objects.