Save to JSON file