Skip to content

Instantly share code, notes, and snippets.

@rdm

rdm/z

Created November 7, 2018 21:32
Show Gist options
  • Save rdm/8fd4bcfbbc69ae1ee2f555df69b4f3a9 to your computer and use it in GitHub Desktop.
Save rdm/8fd4bcfbbc69ae1ee2f555df69b4f3a9 to your computer and use it in GitHub Desktop.
an arbitrary json structure as represented by wordpress's maybe_serialize()
a:10:{s:14:"cooked_version";s:5:"1.4.1";s:16:"difficulty_level";s:1:"0";s:9:"prep_time";s:1:"5";s:9:"cook_time";s:0:"";s:7:"content";s:941:"<div class="recipe-content margin-40-bottom">\r\n<div class="image-container">[cooked-image]</div>\r\n<div class="recipe-meta-container clearfix">[cooked-info left="servings,prep_time,cook_time,total_time"]</div>\r\n[cooked-info left="author,difficulty" right="print,fullscreen"]\r\n<div class="recipe-summary margin-8-bottom">\r\n<div class="margin-0-auto">[cooked-excerpt]</div>\r\n</div>\r\n<div class="clearfix recipe-ingredients-instructions">\r\n<div class="sidebar padded-mobile padding-8 grid-item grid-7-of-16">\r\n<div class="partial recipe-ingredients">\r\n<h2>Ingredients</h2>\r\n<p>[cooked-ingredients]</p>\r\n</div>\r\n<div class="partial recipe-ingredients">[cooked-nutrition]</div>\r\n</div>\r\n<div class="recipe-steps padded-mobile padding-8-top float-left grid-item grid-9-of-16">\r\n<div class="recipe-instructions margin-0-auto">\r\n<h2 class="margin-0-auto">How to Make It</h2>\r\n<p>[cooked-directions]</p>\r\n</div>\r\n</div>\r\n</div>\r\n[cooked-gallery]</div>";s:7:"excerpt";s:0:"";s:11:"ingredients";a:6:{i:7527469;a:3:{s:6:"amount";s:1:"3";s:11:"measurement";s:0:"";s:4:"name";s:13:"garlic cloves";}i:729739320002;a:3:{s:6:"amount";s:1:"1";s:11:"measurement";s:3:"tsp";s:4:"name";s:10:"flake salt";}i:611306551579;a:3:{s:6:"amount";s:1:"1";s:11:"measurement";s:3:"cup";s:4:"name";s:46:"unflavored Greek yogurt, preferably whole-milk";}i:545787189668;a:3:{s:6:"amount";s:1:"2";s:11:"measurement";s:4:"tbsp";s:4:"name";s:33:"each beet powder* and lemon juice";}i:710426506596;a:3:{s:6:"amount";s:1:"1";s:11:"measurement";s:4:"tbsp";s:4:"name";s:45:"each garam masala* and extra-virgin olive oil";}i:900510165785;a:3:{s:6:"amount";s:0:"";s:11:"measurement";s:0:"";s:4:"name";s:86:"Crackers and raw vegetables, such as carrots, bell peppers, and snap peas, for serving";}}s:10:"directions";a:1:{i:1344217;a:2:{s:5:"image";s:0:"";s:7:"content";s:575:"<p>On a cutting board, smash garlic and salt with the side of chef’s knife, then mince. In a bowl, combine yogurt, garlic mixture, beet powder, lemon juice, garam masala, and olive oil to blend well. Serve with crackers and vegetables.</p>\r\n<p>* <em>Find beet powder (also called beet root powder) at natural foods stores and at oaktownspiceshop.com. Find garam masala (an Indian spice blend) at oaktownspiceshop.com and at well-stocked grocery stores.</em></p>\r\n<p><strong>MAKE AHEAD:</strong><em> The dip keeps for up to 2 days, chilled in an airtight container.</em></p>";}}s:9:"nutrition";a:39:{s:12:"serving_size";s:7:"1/4 cup";s:8:"servings";s:1:"4";s:8:"calories";s:3:"157";s:12:"calories_fat";s:2:"59";s:3:"fat";s:3:"6.7";s:7:"sat_fat";s:1:"2";s:9:"trans_fat";s:0:"";s:11:"cholesterol";s:3:"8.3";s:6:"sodium";s:3:"463";s:9:"potassium";s:0:"";s:5:"carbs";s:3:"3.8";s:5:"fiber";s:1:"0";s:6:"sugars";s:0:"";s:7:"protein";s:3:"5.9";s:9:"vitamin_a";s:0:"";s:9:"vitamin_c";s:0:"";s:7:"calcium";s:0:"";s:4:"iron";s:0:"";s:9:"vitamin_d";s:0:"";s:9:"vitamin_e";s:0:"";s:9:"vitamin_k";s:0:"";s:7:"thiamin";s:0:"";s:10:"riboflavin";s:0:"";s:6:"niacin";s:0:"";s:10:"vitamin_b6";s:0:"";s:6:"folate";s:0:"";s:11:"vitamin_b12";s:0:"";s:6:"biotin";s:0:"";s:16:"pantothenic_acid";s:0:"";s:10:"phosphorus";s:0:"";s:6:"iodine";s:0:"";s:9:"magnesium";s:0:"";s:4:"zinc";s:0:"";s:8:"selenium";s:0:"";s:6:"copper";s:0:"";s:9:"manganese";s:0:"";s:8:"chromium";s:0:"";s:10:"molybdenum";s:0:"";s:8:"chloride";s:0:"";}s:7:"gallery";a:2:{s:4:"type";s:6:"cooked";s:9:"video_url";s:0:"";}}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment