Serialize recipes to JSON properly