Groovy web console

subscribe to the feed Subscribe
to this
site
ElasticSearch index (via #groovywebconsole)
tweet this snippet Tweet
this
script

ElasticSearch index

Published 5 months ago by RaviG
Actions  ➤ Edit in console Back to console Show/hide line numbers View recent scripts

import groovy.json.JsonSlurper



	def rstloText = new JsonSlurper().parseText("{\"categories\":[{\"id\":\"holidays_occasions_1637_snapfish_us\",\"categories\":[{\"id\":\"valentines_day_cards_1646_snapfish_us\",\"categories\":[],\"displayName\":\"Valentine's Day Cards\",\"count\":232,\"categorymap\":[],\"icon_urls\":[]},{\"id\":\"new_years_photo_cards_1646_1450307671_snapfish_us\",\"categories\":[],\"displayName\":\"New Year's Photo Cards\",\"count\":151,\"categorymap\":[],\"icon_urls\":[]},{\"id\":\"kwanzaa_photo_cards_1646_snapfish_us\",\"categories\":[],\"displayName\":\"Kwanzaa Photo Cards\",\"count\":15,\"categorymap\":[],\"icon_urls\":[]},{\"id\":\"chinese_new_year_cards_1646_snapfish_us\",\"categories\":[],\"displayName\":\"Chinese New Year Cards\",\"count\":15,\"categorymap\":[],\"icon_urls\":[]},{\"id\":\"st_patricks_day_cards_1646_snapfish_us\",\"categories\":[],\"displayName\":\"St Patrick's Day Cards\",\"count\":12,\"categorymap\":[],\"icon_urls\":[]},{\"id\":\"easter_cards_1646_snapfish_us\",\"categories\":[],\"displayName\":\"Easter Cards\",\"count\":82,\"categorymap\":[],\"icon_urls\":[]},{\"id\":\"cinco_de_mayo_1646_1476937086_snapfish_us\",\"categories\":[],\"displayName\":\"Cinco De Mayo\",\"count\":4,\"categorymap\":[],\"icon_urls\":[]},{\"id\":\"mothers_day_cards_1646_snapfish_us\",\"categories\":[],\"displayName\":\"Mother's Day Cards\",\"count\":103,\"categorymap\":[],\"icon_urls\":[]},{\"id\":\"fathers_day_cards_1646_snapfish_us\",\"categories\":[],\"displayName\":\"Father's Day Cards\",\"count\":101,\"categorymap\":[],\"icon_urls\":[]},{\"id\":\"4th_of_july_photo_cards_1646_snapfish_us\",\"categories\":[],\"displayName\":\"4th of July Photo Cards\",\"count\":14,\"categorymap\":[],\"icon_urls\":[]},{\"id\":\"rosh_hashanah_cards_1646_snapfish_us\",\"categories\":[],\"displayName\":\"Rosh Hashanah Cards\",\"count\":9,\"categorymap\":[],\"icon_urls\":[]},{\"id\":\"diwali_cards_1646_snapfish_us\",\"categories\":[],\"displayName\":\"Diwali Cards\",\"count\":13,\"categorymap\":[],\"icon_urls\":[]},{\"id\":\"halloween_photo_cards_1646_snapfish_us\",\"categories\":[],\"displayName\":\"Halloween Photo Cards\",\"count\":75,\"categorymap\":[],\"icon_urls\":[]},{\"id\":\"dia_de_los_santos_reyes_cards_1646_snapfish_us\",\"categories\":[],\"displayName\":\"Dia de los Santos Reyes\",\"count\":0,\"categorymap\":[],\"icon_urls\":[]},{\"id\":\"verterans_day_cards_1646_snapfish_us\",\"categories\":[],\"displayName\":\"Veteran's Day Cards\",\"count\":14,\"categorymap\":[],\"icon_urls\":[]},{\"id\":\"thanksgiving_photo_cards_1646_snapfish_us\",\"categories\":[],\"displayName\":\"Thanksgiving Photo Cards\",\"count\":82,\"categorymap\":[],\"icon_urls\":[]}],\"displayName\":\"Holidays\",\"categorymap\":[],\"icon_urls\":[]},{\"id\":\"stationery_1637_snapfish_us\",\"categories\":[{\"id\":\"full_photo_cards_1711_1462297924_snapfish_us\",\"categories\":[],\"displayName\":\"Full Photo Cards\",\"count\":9,\"categorymap\":[],\"icon_urls\":[]},{\"id\":\"thank_you_cards_1711_snapfish_us\",\"categories\":[],\"displayName\":\"Thank You Cards\",\"count\":353,\"categorymap\":[],\"icon_urls\":[]},{\"id\":\"personalized_stationery_1711_snapfish_us\",\"categories\":[],\"displayName\":\"Personalized Stationery\",\"count\":29,\"categorymap\":[],\"icon_urls\":[]},{\"id\":\"any_occasion_cards_1711_1450308927_snapfish_us\",\"categories\":[],\"displayName\":\"Any Occasion Cards\",\"count\":48,\"categorymap\":[],\"icon_urls\":[]}],\"displayName\":\"Thank you + Stationery\",\"categorymap\":[],\"icon_urls\":[]},{\"id\":\"baby_kids_1637_snapfish_us\",\"categories\":[{\"id\":\"baby_boy_announcements_1671_snapfish_us\",\"categories\":[],\"displayName\":\"Baby Boy Announcements\",\"count\":55,\"categorymap\":[],\"icon_urls\":[]},{\"id\":\"baby_girl_announcements_1671_snapfish_us\",\"categories\":[],\"displayName\":\"Baby Girl Announcements\",\"count\":74,\"categorymap\":[],\"icon_urls\":[]},{\"id\":\"baby_annoucements_1671_snapfish_us\",\"categories\":[],\"displayName\":\"Baby Announcements\",\"count\":106,\"categorymap\":[],\"icon_urls\":[]},{\"id\":\"twin_multiple_baby_announcements_1671_snapfish_us\",\"categories\":[],\"displayName\":\"Twin + Multiple Babies\",\"count\":13,\"categorymap\":[],\"icon_urls\":[]},{\"id\":\"adoption_announcements_1671_snapfish_us\",\"categories\":[],\"displayName\":\"Adoption Announcements\",\"count\":21,\"categorymap\":[],\"icon_urls\":[]},{\"id\":\"christening_baptism_announcements_1671_snapfish_us\",\"categories\":[],\"displayName\":\"Christening + Baptism\",\"count\":53,\"categorymap\":[],\"icon_urls\":[]},{\"id\":\"communion_1646_1451405692_snapfish_us\",\"categories\":[],\"displayName\":\"Communion\",\"count\":11,\"categorymap\":[],\"icon_urls\":[]},{\"id\":\"confirmation_1646_1451405712_snapfish_us\",\"categories\":[],\"displayName\":\"Confirmation\",\"count\":8,\"categorymap\":[],\"icon_urls\":[]},{\"id\":\"baby_shower_invitations_1671_snapfish_us\",\"categories\":[],\"displayName\":\"Baby Shower Invitations\",\"count\":92,\"categorymap\":[],\"icon_urls\":[]},{\"id\":\"shower_thank_you_cards_1671_1433883704_snapfish_us\",\"categories\":[],\"displayName\":\"Shower Thank You Cards\",\"count\":33,\"categorymap\":[],\"icon_urls\":[]},{\"id\":\"kids_thank_you_cards_1671_snapfish_us\",\"categories\":[],\"displayName\":\"Kids Thank You Cards\",\"count\":53,\"categorymap\":[],\"icon_urls\":[]}],\"displayName\":\"Baby + Kids\",\"categorymap\":[],\"icon_urls\":[]},{\"id\":\"birthday_cards_1637_1450309343_snapfish_us\",\"categories\":[{\"id\":\"birthday_party_invites_8045_1450309376_snapfish_us\",\"categories\":[],\"displayName\":\"Birthday Party Invites\",\"count\":87,\"categorymap\":[],\"icon_urls\":[]},{\"id\":\"birthday_greeting_cards_8045_1450309413_snapfish_us\",\"categories\":[],\"displayName\":\"Birthday Greeting Cards\",\"count\":62,\"categorymap\":[],\"icon_urls\":[]},{\"id\":\"1st_birthday_party_invitations_1671_snapfish_us\",\"categories\":[],\"displayName\":\"1st Birthday Invitations\",\"count\":39,\"categorymap\":[],\"icon_urls\":[]},{\"id\":\"2nd_birthday_party_invitations_1671_snapfish_us\",\"categories\":[],\"displayName\":\"2nd Birthday Invitations\",\"count\":3,\"categorymap\":[],\"icon_urls\":[]},{\"id\":\"3rd_birthday_party_invitation_1671_snapfish_us\",\"categories\":[],\"displayName\":\"3rd Birthday Invitations\",\"count\":7,\"categorymap\":[],\"icon_urls\":[]},{\"id\":\"4th_birthday_party_invitation_1671_snapfish_us\",\"categories\":[],\"displayName\":\"4th Birthday Invitations\",\"count\":2,\"categorymap\":[],\"icon_urls\":[]},{\"id\":\"5th_birthday_party_invitation_1671_snapfish_us\",\"categories\":[],\"displayName\":\"5th Birthday Invitations\",\"count\":6,\"categorymap\":[],\"icon_urls\":[]},{\"id\":\"quinceanera_8045_1478314031_snapfish_us\",\"categories\":[],\"displayName\":\"Quinceanera\",\"count\":4,\"categorymap\":[],\"icon_urls\":[]}],\"displayName\":\"Birthday Cards\",\"categorymap\":[],\"icon_urls\":[]},{\"id\":\"invitations_1637_snapfish_us\",\"categories\":[{\"id\":\"winter_party_invitations_1685_snapfish_us\",\"categories\":[],\"displayName\":\"Winter Party Invites\",\"count\":62,\"categorymap\":[],\"icon_urls\":[]},{\"id\":\"anniversary_party_invitations_1685_snapfish_us\",\"categories\":[],\"displayName\":\"Anniversary Invitations\",\"count\":23,\"categorymap\":[],\"icon_urls\":[]},{\"id\":\"birthday_party_invtes_1685_1461962499_snapfish_us\",\"categories\":[],\"displayName\":\"Birthday Party Invites\",\"count\":73,\"categorymap\":[],\"icon_urls\":[]},{\"id\":\"quinceanera_1685_1476936524_snapfish_us\",\"categories\":[],\"displayName\":\"Quinceanera\",\"count\":4,\"categorymap\":[],\"icon_urls\":[]},{\"id\":\"party_invitations_1685_snapfish_us\",\"categories\":[],\"displayName\":\"Party Invitations\",\"count\":54,\"categorymap\":[],\"icon_urls\":[]},{\"id\":\"moving_announcements_1685_1450308568_snapfish_us\",\"categories\":[],\"displayName\":\"Moving Announcements\",\"count\":18,\"categorymap\":[],\"icon_urls\":[]},{\"id\":\"wedding_shower_invitations_1685_snapfish_us\",\"categories\":[],\"displayName\":\"Wedding Shower Invites\",\"count\":36,\"categorymap\":[],\"icon_urls\":[]},{\"id\":\"baptism_invitations_1685_snapfish_us\",\"categories\":[],\"displayName\":\"Baptism Invitations\",\"count\":33,\"categorymap\":[],\"icon_urls\":[]},{\"id\":\"bar_bat_mitzvah_invitations_1685_snapfish_us\",\"categories\":[],\"displayName\":\"Bar & Bat Mitzvah\",\"count\":19,\"categorymap\":[],\"icon_urls\":[]},{\"id\":\"confirmation_invitations_1685_snapfish_us\",\"categories\":[],\"displayName\":\"Confirmation Invites\",\"count\":8,\"categorymap\":[],\"icon_urls\":[]},{\"id\":\"spring_party_invitations_1685_snapfish_us\",\"categories\":[],\"displayName\":\"Spring Party Invites\",\"count\":17,\"categorymap\":[],\"icon_urls\":[]},{\"id\":\"summer_party_invitations_1685_snapfish_us\",\"categories\":[],\"displayName\":\"Summer Party Invites\",\"count\":77,\"categorymap\":[],\"icon_urls\":[]},{\"id\":\"fall_party_invitations_1685_snapfish_us\",\"categories\":[],\"displayName\":\"Fall Party Invitations\",\"count\":57,\"categorymap\":[],\"icon_urls\":[]}],\"displayName\":\"Invitations + Announcements\",\"categorymap\":[],\"icon_urls\":[]},{\"id\":\"greeting_cards_1637_snapfish_us\",\"categories\":[{\"id\":\"love_you_cards_1698_snapfish_us\",\"categories\":[],\"displayName\":\"Love You Cards\",\"count\":26,\"categorymap\":[],\"icon_urls\":[]},{\"id\":\"birthday_greeting_cards_1698_1461021439_snapfish_us\",\"categories\":[],\"displayName\":\"Birthday Cards\",\"count\":63,\"categorymap\":[],\"icon_urls\":[]},{\"id\":\"anniversary_cards_1698_snapfish_us\",\"categories\":[],\"displayName\":\"Anniversary Cards\",\"count\":19,\"categorymap\":[],\"icon_urls\":[]},{\"id\":\"just_because_cards_1698_snapfish_us\",\"categories\":[],\"displayName\":\"Just Because Cards\",\"count\":33,\"categorymap\":[],\"icon_urls\":[]},{\"id\":\"thank_you_cards_1698_snapfish_us\",\"categories\":[],\"displayName\":\"Thank You Cards\",\"count\":62,\"categorymap\":[],\"icon_urls\":[]},{\"id\":\"congratulations_cards_1698_snapfish_us\",\"categories\":[],\"displayName\":\"Congratulations Cards\",\"count\":16,\"categorymap\":[],\"icon_urls\":[]},{\"id\":\"graduation_greeting_cards_8039_1454615010_snapfish_us\",\"categories\":[],\"displayName\":\"Congratulations Grad\",\"count\":6,\"categorymap\":[],\"icon_urls\":[]},{\"id\":\"sympathy_cards_1698_snapfish_us\",\"categories\":[],\"displayName\":\"Sympathy Cards\",\"count\":12,\"categorymap\":[],\"icon_urls\":[]},{\"id\":\"miss_you_cards_1698_snapfish_us\",\"categories\":[],\"displayName\":\"Miss You Cards\",\"count\":13,\"categorymap\":[],\"icon_urls\":[]},{\"id\":\"back_to_school_cards_1698_snapfish_us\",\"categories\":[],\"displayName\":\"Back to School Cards\",\"count\":1,\"categorymap\":[],\"icon_urls\":[]},{\"id\":\"mothers_day_cards_1698_snapfish_us\",\"categories\":[],\"displayName\":\"Mother's Day Cards\",\"count\":92,\"categorymap\":[],\"icon_urls\":[]},{\"id\":\"fathers_day_cards_1698_snapfish_us\",\"categories\":[],\"displayName\":\"Father's Day Cards\",\"count\":76,\"categorymap\":[],\"icon_urls\":[]},{\"id\":\"grandparents_cards_1698_snapfish_us\",\"categories\":[],\"displayName\":\"Grandparents Cards\",\"count\":44,\"categorymap\":[],\"icon_urls\":[]},{\"id\":\"christmas_cards_1698_1446775176_snapfish_us\",\"categories\":[],\"displayName\":\"Christmas Cards\",\"count\":96,\"categorymap\":[],\"icon_urls\":[]},{\"id\":\"holiday_cards_1698_1447099826_snapfish_us\",\"categories\":[],\"displayName\":\"Holiday Cards\",\"count\":60,\"categorymap\":[],\"icon_urls\":[]}],\"displayName\":\"Greeting Cards\",\"categorymap\":[],\"icon_urls\":[]},{\"id\":\"wedding_1637_snapfish_us\",\"categories\":[{\"id\":\"save_the_date_announcements_1714_snapfish_us\",\"categories\":[],\"displayName\":\"Save the Date Cards\",\"count\":114,\"categorymap\":[],\"icon_urls\":[]},{\"id\":\"wedding_shower_invitations_1714_snapfish_us\",\"categories\":[],\"displayName\":\"Wedding Shower Invites\",\"count\":46,\"categorymap\":[],\"icon_urls\":[]},{\"id\":\"rehersal_dinner_invitations_1714_snapfish_us\",\"categories\":[],\"displayName\":\"Rehearsal Dinner Invite\",\"count\":7,\"categorymap\":[],\"icon_urls\":[]},{\"id\":\"wedding_invitations_1714_1431635879_snapfish_us\",\"categories\":[],\"displayName\":\"Wedding Invitations\",\"count\":20,\"categorymap\":[],\"icon_urls\":[]},{\"id\":\"wedding_thank_you_cards_1714_snapfish_us\",\"categories\":[],\"displayName\":\"Wedding Thank You\",\"count\":66,\"categorymap\":[],\"icon_urls\":[]},{\"id\":\"just_married_announcements_1714_snapfish_us\",\"categories\":[],\"displayName\":\"Just Married Cards\",\"count\":42,\"categorymap\":[],\"icon_urls\":[]},{\"id\":\"bachlorette_party_invitations_1714_snapfish_us\",\"categories\":[],\"displayName\":\"Bachelorette Party\",\"count\":0,\"categorymap\":[],\"icon_urls\":[]},{\"id\":\"engament_party_invites_1685_1434131309_snapfish_us\",\"categories\":[],\"displayName\":\"Engagement Party Invites\",\"count\":15,\"categorymap\":[],\"icon_urls\":[]}],\"displayName\":\"Wedding\",\"categorymap\":[],\"icon_urls\":[]},{\"id\":\"graduation_cards_1637_1450309130_snapfish_us\",\"categories\":[{\"id\":\"2017_graduation_invitation_8039_1477083384_snapfish_us\",\"categories\":[],\"displayName\":\"2017 Graduation Invitation\",\"count\":63,\"categorymap\":[],\"icon_urls\":[]},{\"id\":\"2017_graduation_announcements_8039_1477083256_snapfish_us\",\"categories\":[],\"displayName\":\"2017 Graduation Announcements\",\"count\":151,\"categorymap\":[],\"icon_urls\":[]},{\"id\":\"graduation_thank_you_cards_8039_1450309309_snapfish_us\",\"categories\":[],\"displayName\":\"Graduation Thank You Cards\",\"count\":95,\"categorymap\":[],\"icon_urls\":[]},{\"id\":\"2016_graduation_announcements_8039_1450309238_snapfish_us\",\"categories\":[],\"displayName\":\"2016 Graduation Announcements\",\"count\":248,\"categorymap\":[],\"icon_urls\":[]},{\"id\":\"2016_graduation_invitations_8039_1450309276_snapfish_us\",\"categories\":[],\"displayName\":\"2016 Graduation Invitations\",\"count\":77,\"categorymap\":[],\"icon_urls\":[]}],\"displayName\":\"Graduation Announcements\",\"categorymap\":[],\"icon_urls\":[]},{\"id\":\"christmas_holiday_1637_1443633194_snapfish_us\",\"categories\":[{\"id\":\"new_years_photo_cards_4926_1481230490_snapfish_us\",\"categories\":[],\"displayName\":\"New Year's Photo Cards\",\"count\":145,\"categorymap\":[],\"icon_urls\":[]},{\"id\":\"year_in_review_cards_1646_snapfish_us\",\"categories\":[],\"displayName\":\"Year in Review Cards\",\"count\":26,\"categorymap\":[],\"icon_urls\":[]},{\"id\":\"christmas_photo_cards_1646_snapfish_us\",\"categories\":[],\"displayName\":\"Christmas Photo Cards\",\"count\":862,\"categorymap\":[],\"icon_urls\":[]},{\"id\":\"holiday_photo_cards_1646_snapfish_us\",\"categories\":[],\"displayName\":\"Holiday Photo Cards\",\"count\":660,\"categorymap\":[],\"icon_urls\":[]},{\"id\":\"religious_christmas_cards_4926_1443635048_snapfish_us\",\"categories\":[],\"displayName\":\"Religious Photo Cards\",\"count\":151,\"categorymap\":[],\"icon_urls\":[]},{\"id\":\"hanukkah_photo_cards_1646_snapfish_us\",\"categories\":[],\"displayName\":\"Hanukkah Photo Cards\",\"count\":53,\"categorymap\":[],\"icon_urls\":[]},{\"id\":\"pet_christmas_cards_4926_1472510175_snapfish_us\",\"categories\":[],\"displayName\":\"Pet Christmas Cards\",\"count\":15,\"categorymap\":[],\"icon_urls\":[]},{\"id\":\"christmas_party_invitation_4926_1444945766_snapfish_us\",\"categories\":[],\"displayName\":\"Christmas Party Invitation\",\"count\":55,\"categorymap\":[],\"icon_urls\":[]},{\"id\":\"newlywed_christmas_4926_1481153549_snapfish_us\",\"categories\":[],\"displayName\":\"Newlywed Christmas\",\"count\":14,\"categorymap\":[],\"icon_urls\":[]}],\"displayName\":\"Christmas + Holiday\",\"categorymap\":[],\"icon_urls\":[]},{\"id\":\"notecards_1637_1447717449_snapfish_us\",\"categories\":[],\"displayName\":\"Notecards\",\"count\":113,\"categorymap\":[],\"icon_urls\":[]},{\"id\":\"designer_name_1637_1447978598_snapfish_us\",\"categories\":[{\"id\":\"snapfish_6237_1447978617_snapfish_us\",\"categories\":[],\"displayName\":\"Designs by Snapfish\",\"count\":39,\"categorymap\":[],\"icon_urls\":[]},{\"id\":\"2_june_bugs_6237_1448045914_snapfish_us\",\"categories\":[],\"displayName\":\"Designs by 2 June Bugs\",\"count\":288,\"categorymap\":[],\"icon_urls\":[]},{\"id\":\"alisse_courter_6237_1448045933_snapfish_us\",\"categories\":[],\"displayName\":\"Designs by Alisse Courter\",\"count\":76,\"categorymap\":[],\"icon_urls\":[]},{\"id\":\"ciel_bleu_6237_1448046007_snapfish_us\",\"categories\":[],\"displayName\":\"Designs by Ciel Bleu\",\"count\":46,\"categorymap\":[],\"icon_urls\":[]},{\"id\":\"amy_sheridan_6237_1448045976_snapfish_us\",\"categories\":[],\"displayName\":\"Designs by Amy Sheridan\",\"count\":159,\"categorymap\":[],\"icon_urls\":[]},{\"id\":\"coco_ellie_design_co_6237_1448046156_snapfish_us\",\"categories\":[],\"displayName\":\"Designs by Coco + Ellie Design Co\",\"count\":78,\"categorymap\":[],\"icon_urls\":[]},{\"id\":\"cpaperie_6237_1448046018_snapfish_us\",\"categories\":[],\"displayName\":\"Designs by Cpaperie\",\"count\":136,\"categorymap\":[],\"icon_urls\":[]},{\"id\":\"finley_press_6237_1448046040_snapfish_us\",\"categories\":[],\"displayName\":\"Designs by Finley Press\",\"count\":436,\"categorymap\":[],\"icon_urls\":[]},{\"id\":\"designs_by_foto_crush_6237_1470939267_snapfish_us\",\"categories\":[],\"displayName\":\"Designs by Foto Crush\",\"count\":500,\"categorymap\":[],\"icon_urls\":[]},{\"id\":\"gartner_digital_6237_1448046185_snapfish_us\",\"categories\":[],\"displayName\":\"Designs by Gartner Digital\",\"count\":303,\"categorymap\":[],\"icon_urls\":[]},{\"id\":\"happy_day_paperie_6237_1448046208_snapfish_us\",\"categories\":[],\"displayName\":\"Designs by Happy Day Paperie\",\"count\":74,\"categorymap\":[],\"icon_urls\":[]},{\"id\":\"idesign_co_6237_1448046252_snapfish_us\",\"categories\":[],\"displayName\":\"Designs by idesign+co\",\"count\":127,\"categorymap\":[],\"icon_urls\":[]},{\"id\":\"inkberry_cards_6237_1448046263_snapfish_us\",\"categories\":[],\"displayName\":\"Designs by Inkberry Cards\",\"count\":208,\"categorymap\":[],\"icon_urls\":[]},{\"id\":\"kelly_nasuta_6237_1448046290_snapfish_us\",\"categories\":[],\"displayName\":\"Designs by Kelly Nasuta\",\"count\":305,\"categorymap\":[],\"icon_urls\":[]},{\"id\":\"megan_hain_6237_1448046467_snapfish_us\",\"categories\":[],\"displayName\":\"Designs by Megan Hain\",\"count\":42,\"categorymap\":[],\"icon_urls\":[]},{\"id\":\"phototidings,_inc_6237_1448046533_snapfish_us\",\"categories\":[],\"displayName\":\"Designs by PhotoTidings\",\"count\":237,\"categorymap\":[],\"icon_urls\":[]},{\"id\":\"spaces_for_faces_6237_1448046574_snapfish_us\",\"categories\":[],\"displayName\":\"Designs by Spaces for Faces\",\"count\":204,\"categorymap\":[],\"icon_urls\":[]},{\"id\":\"sweet_cricket_design_6237_1448046599_snapfish_us\",\"categories\":[],\"displayName\":\"Designs by Sweet Cricket Design\",\"count\":64,\"categorymap\":[],\"icon_urls\":[]},{\"id\":\"tumbalina_6237_1448044431_snapfish_us\",\"categories\":[],\"displayName\":\"Designs by Tumbalina\",\"count\":559,\"categorymap\":[],\"icon_urls\":[]}],\"displayName\":\"Shop by Designer\",\"categorymap\":[],\"icon_urls\":[]}]}")

	def rstlnText = new JsonSlurper().parseText("{\"categories\":[{\"id\":\"holidays_occasions_1637_snapfish_us\",\"categories\":[{\"id\":\"valentines_day_cards_1646_snapfish_us\",\"categories\":[],\"displayName\":\"Valentine's Day Cards\",\"count\":232,\"categorymap\":[],\"icon_urls\":[]},{\"id\":\"new_years_photo_cards_1646_1450307671_snapfish_us\",\"categories\":[],\"displayName\":\"New Year's Photo Cards\",\"count\":151,\"categorymap\":[],\"icon_urls\":[]},{\"id\":\"kwanzaa_photo_cards_1646_snapfish_us\",\"categories\":[],\"displayName\":\"Kwanzaa Photo Cards\",\"count\":15,\"categorymap\":[],\"icon_urls\":[]},{\"id\":\"chinese_new_year_cards_1646_snapfish_us\",\"categories\":[],\"displayName\":\"Chinese New Year Cards\",\"count\":15,\"categorymap\":[],\"icon_urls\":[]},{\"id\":\"st_patricks_day_cards_1646_snapfish_us\",\"categories\":[],\"displayName\":\"St Patrick's Day Cards\",\"count\":12,\"categorymap\":[],\"icon_urls\":[]},{\"id\":\"easter_cards_1646_snapfish_us\",\"categories\":[],\"displayName\":\"Easter Cards\",\"count\":82,\"categorymap\":[],\"icon_urls\":[]},{\"id\":\"cinco_de_mayo_1646_1476937086_snapfish_us\",\"categories\":[],\"displayName\":\"Cinco De Mayo\",\"count\":4,\"categorymap\":[],\"icon_urls\":[]},{\"id\":\"mothers_day_cards_1646_snapfish_us\",\"categories\":[],\"displayName\":\"Mother's Day Cards\",\"count\":103,\"categorymap\":[],\"icon_urls\":[]},{\"id\":\"fathers_day_cards_1646_snapfish_us\",\"categories\":[],\"displayName\":\"Father's Day Cards\",\"count\":101,\"categorymap\":[],\"icon_urls\":[]},{\"id\":\"4th_of_july_photo_cards_1646_snapfish_us\",\"categories\":[],\"displayName\":\"4th of July Photo Cards\",\"count\":14,\"categorymap\":[],\"icon_urls\":[]},{\"id\":\"rosh_hashanah_cards_1646_snapfish_us\",\"categories\":[],\"displayName\":\"Rosh Hashanah Cards\",\"count\":9,\"categorymap\":[],\"icon_urls\":[]},{\"id\":\"diwali_cards_1646_snapfish_us\",\"categories\":[],\"displayName\":\"Diwali Cards\",\"count\":13,\"categorymap\":[],\"icon_urls\":[]},{\"id\":\"halloween_photo_cards_1646_snapfish_us\",\"categories\":[],\"displayName\":\"Halloween Photo Cards\",\"count\":75,\"categorymap\":[],\"icon_urls\":[]},{\"id\":\"dia_de_los_santos_reyes_cards_1646_snapfish_us\",\"categories\":[],\"displayName\":\"Dia de los Santos Reyes\",\"count\":0,\"categorymap\":[],\"icon_urls\":[]},{\"id\":\"verterans_day_cards_1646_snapfish_us\",\"categories\":[],\"displayName\":\"Veteran's Day Cards\",\"count\":14,\"categorymap\":[],\"icon_urls\":[]},{\"id\":\"thanksgiving_photo_cards_1646_snapfish_us\",\"categories\":[],\"displayName\":\"Thanksgiving Photo Cards\",\"count\":82,\"categorymap\":[],\"icon_urls\":[]}],\"displayName\":\"Holidays\",\"categorymap\":[],\"icon_urls\":[]},{\"id\":\"stationery_1637_snapfish_us\",\"categories\":[{\"id\":\"full_photo_cards_1711_1462297924_snapfish_us\",\"categories\":[],\"displayName\":\"Full Photo Cards\",\"count\":9,\"categorymap\":[],\"icon_urls\":[]},{\"id\":\"thank_you_cards_1711_snapfish_us\",\"categories\":[],\"displayName\":\"Thank You Cards\",\"count\":353,\"categorymap\":[],\"icon_urls\":[]},{\"id\":\"personalized_stationery_1711_snapfish_us\",\"categories\":[],\"displayName\":\"Personalized Stationery\",\"count\":29,\"categorymap\":[],\"icon_urls\":[]},{\"id\":\"any_occasion_cards_1711_1450308927_snapfish_us\",\"categories\":[],\"displayName\":\"Any Occasion Cards\",\"count\":48,\"categorymap\":[],\"icon_urls\":[]}],\"displayName\":\"Thank you + Stationery\",\"categorymap\":[],\"icon_urls\":[]},{\"id\":\"baby_kids_1637_snapfish_us\",\"categories\":[{\"id\":\"baby_boy_announcements_1671_snapfish_us\",\"categories\":[],\"displayName\":\"Baby Boy Announcements\",\"count\":55,\"categorymap\":[],\"icon_urls\":[]},{\"id\":\"baby_girl_announcements_1671_snapfish_us\",\"categories\":[],\"displayName\":\"Baby Girl Announcements\",\"count\":74,\"categorymap\":[],\"icon_urls\":[]},{\"id\":\"baby_annoucements_1671_snapfish_us\",\"categories\":[],\"displayName\":\"Baby Announcements\",\"count\":106,\"categorymap\":[],\"icon_urls\":[]},{\"id\":\"twin_multiple_baby_announcements_1671_snapfish_us\",\"categories\":[],\"displayName\":\"Twin + Multiple Babies\",\"count\":13,\"categorymap\":[],\"icon_urls\":[]},{\"id\":\"adoption_announcements_1671_snapfish_us\",\"categories\":[],\"displayName\":\"Adoption Announcements\",\"count\":21,\"categorymap\":[],\"icon_urls\":[]},{\"id\":\"christening_baptism_announcements_1671_snapfish_us\",\"categories\":[],\"displayName\":\"Christening + Baptism\",\"count\":53,\"categorymap\":[],\"icon_urls\":[]},{\"id\":\"communion_1646_1451405692_snapfish_us\",\"categories\":[],\"displayName\":\"Communion\",\"count\":11,\"categorymap\":[],\"icon_urls\":[]},{\"id\":\"confirmation_1646_1451405712_snapfish_us\",\"categories\":[],\"displayName\":\"Confirmation\",\"count\":8,\"categorymap\":[],\"icon_urls\":[]},{\"id\":\"baby_shower_invitations_1671_snapfish_us\",\"categories\":[],\"displayName\":\"Baby Shower Invitations\",\"count\":92,\"categorymap\":[],\"icon_urls\":[]},{\"id\":\"shower_thank_you_cards_1671_1433883704_snapfish_us\",\"categories\":[],\"displayName\":\"Shower Thank You Cards\",\"count\":33,\"categorymap\":[],\"icon_urls\":[]},{\"id\":\"kids_thank_you_cards_1671_snapfish_us\",\"categories\":[],\"displayName\":\"Kids Thank You Cards\",\"count\":53,\"categorymap\":[],\"icon_urls\":[]}],\"displayName\":\"Baby + Kids\",\"categorymap\":[],\"icon_urls\":[]},{\"id\":\"birthday_cards_1637_1450309343_snapfish_us\",\"categories\":[{\"id\":\"birthday_party_invites_8045_1450309376_snapfish_us\",\"categories\":[],\"displayName\":\"Birthday Party Invites\",\"count\":87,\"categorymap\":[],\"icon_urls\":[]},{\"id\":\"birthday_greeting_cards_8045_1450309413_snapfish_us\",\"categories\":[],\"displayName\":\"Birthday Greeting Cards\",\"count\":62,\"categorymap\":[],\"icon_urls\":[]},{\"id\":\"1st_birthday_party_invitations_1671_snapfish_us\",\"categories\":[],\"displayName\":\"1st Birthday Invitations\",\"count\":39,\"categorymap\":[],\"icon_urls\":[]},{\"id\":\"2nd_birthday_party_invitations_1671_snapfish_us\",\"categories\":[],\"displayName\":\"2nd Birthday Invitations\",\"count\":3,\"categorymap\":[],\"icon_urls\":[]},{\"id\":\"3rd_birthday_party_invitation_1671_snapfish_us\",\"categories\":[],\"displayName\":\"3rd Birthday Invitations\",\"count\":7,\"categorymap\":[],\"icon_urls\":[]},{\"id\":\"4th_birthday_party_invitation_1671_snapfish_us\",\"categories\":[],\"displayName\":\"4th Birthday Invitations\",\"count\":2,\"categorymap\":[],\"icon_urls\":[]},{\"id\":\"5th_birthday_party_invitation_1671_snapfish_us\",\"categories\":[],\"displayName\":\"5th Birthday Invitations\",\"count\":6,\"categorymap\":[],\"icon_urls\":[]},{\"id\":\"quinceanera_8045_1478314031_snapfish_us\",\"categories\":[],\"displayName\":\"Quinceanera\",\"count\":4,\"categorymap\":[],\"icon_urls\":[]}],\"displayName\":\"Birthday Cards\",\"categorymap\":[],\"icon_urls\":[]},{\"id\":\"invitations_1637_snapfish_us\",\"categories\":[{\"id\":\"winter_party_invitations_1685_snapfish_us\",\"categories\":[],\"displayName\":\"Winter Party Invites\",\"count\":62,\"categorymap\":[],\"icon_urls\":[]},{\"id\":\"anniversary_party_invitations_1685_snapfish_us\",\"categories\":[],\"displayName\":\"Anniversary Invitations\",\"count\":23,\"categorymap\":[],\"icon_urls\":[]},{\"id\":\"birthday_party_invtes_1685_1461962499_snapfish_us\",\"categories\":[],\"displayName\":\"Birthday Party Invites\",\"count\":73,\"categorymap\":[],\"icon_urls\":[]},{\"id\":\"quinceanera_1685_1476936524_snapfish_us\",\"categories\":[],\"displayName\":\"Quinceanera\",\"count\":4,\"categorymap\":[],\"icon_urls\":[]},{\"id\":\"party_invitations_1685_snapfish_us\",\"categories\":[],\"displayName\":\"Party Invitations\",\"count\":54,\"categorymap\":[],\"icon_urls\":[]},{\"id\":\"moving_announcements_1685_1450308568_snapfish_us\",\"categories\":[],\"displayName\":\"Moving Announcements\",\"count\":18,\"categorymap\":[],\"icon_urls\":[]},{\"id\":\"wedding_shower_invitations_1685_snapfish_us\",\"categories\":[],\"displayName\":\"Wedding Shower Invites\",\"count\":36,\"categorymap\":[],\"icon_urls\":[]},{\"id\":\"baptism_invitations_1685_snapfish_us\",\"categories\":[],\"displayName\":\"Baptism Invitations\",\"count\":33,\"categorymap\":[],\"icon_urls\":[]},{\"id\":\"bar_bat_mitzvah_invitations_1685_snapfish_us\",\"categories\":[],\"displayName\":\"Bar & Bat Mitzvah\",\"count\":19,\"categorymap\":[],\"icon_urls\":[]},{\"id\":\"confirmation_invitations_1685_snapfish_us\",\"categories\":[],\"displayName\":\"Confirmation Invites\",\"count\":8,\"categorymap\":[],\"icon_urls\":[]},{\"id\":\"spring_party_invitations_1685_snapfish_us\",\"categories\":[],\"displayName\":\"Spring Party Invites\",\"count\":17,\"categorymap\":[],\"icon_urls\":[]},{\"id\":\"summer_party_invitations_1685_snapfish_us\",\"categories\":[],\"displayName\":\"Summer Party Invites\",\"count\":77,\"categorymap\":[],\"icon_urls\":[]},{\"id\":\"fall_party_invitations_1685_snapfish_us\",\"categories\":[],\"displayName\":\"Fall Party Invitations\",\"count\":57,\"categorymap\":[],\"icon_urls\":[]}],\"displayName\":\"Invitations + Announcements\",\"categorymap\":[],\"icon_urls\":[]},{\"id\":\"greeting_cards_1637_snapfish_us\",\"categories\":[{\"id\":\"love_you_cards_1698_snapfish_us\",\"categories\":[],\"displayName\":\"Love You Cards\",\"count\":26,\"categorymap\":[],\"icon_urls\":[]},{\"id\":\"birthday_greeting_cards_1698_1461021439_snapfish_us\",\"categories\":[],\"displayName\":\"Birthday Cards\",\"count\":63,\"categorymap\":[],\"icon_urls\":[]},{\"id\":\"anniversary_cards_1698_snapfish_us\",\"categories\":[],\"displayName\":\"Anniversary Cards\",\"count\":19,\"categorymap\":[],\"icon_urls\":[]},{\"id\":\"just_because_cards_1698_snapfish_us\",\"categories\":[],\"displayName\":\"Just Because Cards\",\"count\":33,\"categorymap\":[],\"icon_urls\":[]},{\"id\":\"thank_you_cards_1698_snapfish_us\",\"categories\":[],\"displayName\":\"Thank You Cards\",\"count\":62,\"categorymap\":[],\"icon_urls\":[]},{\"id\":\"congratulations_cards_1698_snapfish_us\",\"categories\":[],\"displayName\":\"Congratulations Cards\",\"count\":16,\"categorymap\":[],\"icon_urls\":[]},{\"id\":\"graduation_greeting_cards_8039_1454615010_snapfish_us\",\"categories\":[],\"displayName\":\"Congratulations Grad\",\"count\":6,\"categorymap\":[],\"icon_urls\":[]},{\"id\":\"sympathy_cards_1698_snapfish_us\",\"categories\":[],\"displayName\":\"Sympathy Cards\",\"count\":12,\"categorymap\":[],\"icon_urls\":[]},{\"id\":\"miss_you_cards_1698_snapfish_us\",\"categories\":[],\"displayName\":\"Miss You Cards\",\"count\":13,\"categorymap\":[],\"icon_urls\":[]},{\"id\":\"back_to_school_cards_1698_snapfish_us\",\"categories\":[],\"displayName\":\"Back to School Cards\",\"count\":1,\"categorymap\":[],\"icon_urls\":[]},{\"id\":\"mothers_day_cards_1698_snapfish_us\",\"categories\":[],\"displayName\":\"Mother's Day Cards\",\"count\":92,\"categorymap\":[],\"icon_urls\":[]},{\"id\":\"fathers_day_cards_1698_snapfish_us\",\"categories\":[],\"displayName\":\"Father's Day Cards\",\"count\":76,\"categorymap\":[],\"icon_urls\":[]},{\"id\":\"grandparents_cards_1698_snapfish_us\",\"categories\":[],\"displayName\":\"Grandparents Cards\",\"count\":44,\"categorymap\":[],\"icon_urls\":[]},{\"id\":\"christmas_cards_1698_1446775176_snapfish_us\",\"categories\":[],\"displayName\":\"Christmas Cards\",\"count\":96,\"categorymap\":[],\"icon_urls\":[]},{\"id\":\"holiday_cards_1698_1447099826_snapfish_us\",\"categories\":[],\"displayName\":\"Holiday Cards\",\"count\":60,\"categorymap\":[],\"icon_urls\":[]}],\"displayName\":\"Greeting Cards\",\"categorymap\":[],\"icon_urls\":[]},{\"id\":\"wedding_1637_snapfish_us\",\"categories\":[{\"id\":\"save_the_date_announcements_1714_snapfish_us\",\"categories\":[],\"displayName\":\"Save the Date Cards\",\"count\":114,\"categorymap\":[],\"icon_urls\":[]},{\"id\":\"wedding_shower_invitations_1714_snapfish_us\",\"categories\":[],\"displayName\":\"Wedding Shower Invites\",\"count\":46,\"categorymap\":[],\"icon_urls\":[]},{\"id\":\"rehersal_dinner_invitations_1714_snapfish_us\",\"categories\":[],\"displayName\":\"Rehearsal Dinner Invite\",\"count\":7,\"categorymap\":[],\"icon_urls\":[]},{\"id\":\"wedding_invitations_1714_1431635879_snapfish_us\",\"categories\":[],\"displayName\":\"Wedding Invitations\",\"count\":20,\"categorymap\":[],\"icon_urls\":[]},{\"id\":\"wedding_thank_you_cards_1714_snapfish_us\",\"categories\":[],\"displayName\":\"Wedding Thank You\",\"count\":66,\"categorymap\":[],\"icon_urls\":[]},{\"id\":\"just_married_announcements_1714_snapfish_us\",\"categories\":[],\"displayName\":\"Just Married Cards\",\"count\":42,\"categorymap\":[],\"icon_urls\":[]},{\"id\":\"bachlorette_party_invitations_1714_snapfish_us\",\"categories\":[],\"displayName\":\"Bachelorette Party\",\"count\":0,\"categorymap\":[],\"icon_urls\":[]},{\"id\":\"engament_party_invites_1685_1434131309_snapfish_us\",\"categories\":[],\"displayName\":\"Engagement Party Invites\",\"count\":15,\"categorymap\":[],\"icon_urls\":[]}],\"displayName\":\"Wedding\",\"categorymap\":[],\"icon_urls\":[]},{\"id\":\"graduation_cards_1637_1450309130_snapfish_us\",\"categories\":[{\"id\":\"2017_graduation_invitation_8039_1477083384_snapfish_us\",\"categories\":[],\"displayName\":\"2017 Graduation Invitation\",\"count\":63,\"categorymap\":[],\"icon_urls\":[]},{\"id\":\"2017_graduation_announcements_8039_1477083256_snapfish_us\",\"categories\":[],\"displayName\":\"2017 Graduation Announcements\",\"count\":151,\"categorymap\":[],\"icon_urls\":[]},{\"id\":\"graduation_thank_you_cards_8039_1450309309_snapfish_us\",\"categories\":[],\"displayName\":\"Graduation Thank You Cards\",\"count\":95,\"categorymap\":[],\"icon_urls\":[]},{\"id\":\"2016_graduation_announcements_8039_1450309238_snapfish_us\",\"categories\":[],\"displayName\":\"2016 Graduation Announcements\",\"count\":248,\"categorymap\":[],\"icon_urls\":[]},{\"id\":\"2016_graduation_invitations_8039_1450309276_snapfish_us\",\"categories\":[],\"displayName\":\"2016 Graduation Invitations\",\"count\":77,\"categorymap\":[],\"icon_urls\":[]}],\"displayName\":\"Graduation Announcements\",\"categorymap\":[],\"icon_urls\":[]},{\"id\":\"christmas_holiday_1637_1443633194_snapfish_us\",\"categories\":[{\"id\":\"new_years_photo_cards_4926_1481230490_snapfish_us\",\"categories\":[],\"displayName\":\"New Year's Photo Cards\",\"count\":145,\"categorymap\":[],\"icon_urls\":[]},{\"id\":\"year_in_review_cards_1646_snapfish_us\",\"categories\":[],\"displayName\":\"Year in Review Cards\",\"count\":26,\"categorymap\":[],\"icon_urls\":[]},{\"id\":\"christmas_photo_cards_1646_snapfish_us\",\"categories\":[],\"displayName\":\"Christmas Photo Cards\",\"count\":862,\"categorymap\":[],\"icon_urls\":[]},{\"id\":\"holiday_photo_cards_1646_snapfish_us\",\"categories\":[],\"displayName\":\"Holiday Photo Cards\",\"count\":660,\"categorymap\":[],\"icon_urls\":[]},{\"id\":\"religious_christmas_cards_4926_1443635048_snapfish_us\",\"categories\":[],\"displayName\":\"Religious Photo Cards\",\"count\":151,\"categorymap\":[],\"icon_urls\":[]},{\"id\":\"hanukkah_photo_cards_1646_snapfish_us\",\"categories\":[],\"displayName\":\"Hanukkah Photo Cards\",\"count\":53,\"categorymap\":[],\"icon_urls\":[]},{\"id\":\"pet_christmas_cards_4926_1472510175_snapfish_us\",\"categories\":[],\"displayName\":\"Pet Christmas Cards\",\"count\":15,\"categorymap\":[],\"icon_urls\":[]},{\"id\":\"christmas_party_invitation_4926_1444945766_snapfish_us\",\"categories\":[],\"displayName\":\"Christmas Party Invitation\",\"count\":55,\"categorymap\":[],\"icon_urls\":[]},{\"id\":\"newlywed_christmas_4926_1481153549_snapfish_us\",\"categories\":[],\"displayName\":\"Newlywed Christmas\",\"count\":14,\"categorymap\":[],\"icon_urls\":[]}],\"displayName\":\"Christmas + Holiday\",\"categorymap\":[],\"icon_urls\":[]},{\"id\":\"notecards_1637_1447717449_snapfish_us\",\"categories\":[],\"displayName\":\"Notecards\",\"count\":113,\"categorymap\":[],\"icon_urls\":[]},{\"id\":\"designer_name_1637_1447978598_snapfish_us\",\"categories\":[{\"id\":\"snapfish_6237_1447978617_snapfish_us\",\"categories\":[],\"displayName\":\"Designs by Snapfish\",\"count\":39,\"categorymap\":[],\"icon_urls\":[]},{\"id\":\"2_june_bugs_6237_1448045914_snapfish_us\",\"categories\":[],\"displayName\":\"Designs by 2 June Bugs\",\"count\":288,\"categorymap\":[],\"icon_urls\":[]},{\"id\":\"alisse_courter_6237_1448045933_snapfish_us\",\"categories\":[],\"displayName\":\"Designs by Alisse Courter\",\"count\":76,\"categorymap\":[],\"icon_urls\":[]},{\"id\":\"ciel_bleu_6237_1448046007_snapfish_us\",\"categories\":[],\"displayName\":\"Designs by Ciel Bleu\",\"count\":46,\"categorymap\":[],\"icon_urls\":[]},{\"id\":\"amy_sheridan_6237_1448045976_snapfish_us\",\"categories\":[],\"displayName\":\"Designs by Amy Sheridan\",\"count\":159,\"categorymap\":[],\"icon_urls\":[]},{\"id\":\"coco_ellie_design_co_6237_1448046156_snapfish_us\",\"categories\":[],\"displayName\":\"Designs by Coco + Ellie Design Co\",\"count\":78,\"categorymap\":[],\"icon_urls\":[]},{\"id\":\"cpaperie_6237_1448046018_snapfish_us\",\"categories\":[],\"displayName\":\"Designs by Cpaperie\",\"count\":136,\"categorymap\":[],\"icon_urls\":[]},{\"id\":\"finley_press_6237_1448046040_snapfish_us\",\"categories\":[],\"displayName\":\"Designs by Finley Press\",\"count\":436,\"categorymap\":[],\"icon_urls\":[]},{\"id\":\"designs_by_foto_crush_6237_1470939267_snapfish_us\",\"categories\":[],\"displayName\":\"Designs by Foto Crush\",\"count\":500,\"categorymap\":[],\"icon_urls\":[]},{\"id\":\"gartner_digital_6237_1448046185_snapfish_us\",\"categories\":[],\"displayName\":\"Designs by Gartner Digital\",\"count\":303,\"categorymap\":[],\"icon_urls\":[]},{\"id\":\"happy_day_paperie_6237_1448046208_snapfish_us\",\"categories\":[],\"displayName\":\"Designs by Happy Day Paperie\",\"count\":74,\"categorymap\":[],\"icon_urls\":[]},{\"id\":\"idesign_co_6237_1448046252_snapfish_us\",\"categories\":[],\"displayName\":\"Designs by idesign+co\",\"count\":127,\"categorymap\":[],\"icon_urls\":[]},{\"id\":\"inkberry_cards_6237_1448046263_snapfish_us\",\"categories\":[],\"displayName\":\"Designs by Inkberry Cards\",\"count\":208,\"categorymap\":[],\"icon_urls\":[]},{\"id\":\"kelly_nasuta_6237_1448046290_snapfish_us\",\"categories\":[],\"displayName\":\"Designs by Kelly Nasuta\",\"count\":305,\"categorymap\":[],\"icon_urls\":[]},{\"id\":\"megan_hain_6237_1448046467_snapfish_us\",\"categories\":[],\"displayName\":\"Designs by Megan Hain\",\"count\":42,\"categorymap\":[],\"icon_urls\":[]},{\"id\":\"phototidings,_inc_6237_1448046533_snapfish_us\",\"categories\":[],\"displayName\":\"Designs by PhotoTidings\",\"count\":237,\"categorymap\":[],\"icon_urls\":[]},{\"id\":\"spaces_for_faces_6237_1448046574_snapfish_us\",\"categories\":[],\"displayName\":\"Designs by Spaces for Faces\",\"count\":204,\"categorymap\":[],\"icon_urls\":[]},{\"id\":\"sweet_cricket_design_6237_1448046599_snapfish_us\",\"categories\":[],\"displayName\":\"Designs by Sweet Cricket Design\",\"count\":64,\"categorymap\":[],\"icon_urls\":[]},{\"id\":\"tumbalina_6237_1448044431_snapfish_us\",\"categories\":[],\"displayName\":\"Designs by Tumbalina\",\"count\":559,\"categorymap\":[],\"icon_urls\":[]}],\"displayName\":\"Shop by Designer\",\"categorymap\":[],\"icon_urls\":[]}]}")
 
println("::data old::" + rstloText.get("categories").size())

for (i=0;i<rstloText.get("categories").size();i++){
    println("DisplayOldName::" + rstloText.get("categories")[i].displayName)
    println("DisplayNewName::" + rstlnText.get("categories")[i].displayName)

    println("Oldid::" + rstloText.get("categories")[i].id)
    println("Newid::" + rstlnText.get("categories")[i].id)

    def oldinnerSize = rstloText.get("categories")[i].get("categories").size()
    def newinnerSize = rstlnText.get("categories")[i].get("categories").size()

    def oldsubCat = rstloText.get("categories")[i].get("categories")
    def newsubCat = rstlnText.get("categories")[i].get("categories")

    println("OldInnersize:" + oldinnerSize)
    println("NewInnersize:" + newinnerSize)

    for(j=0; j<oldinnerSize ; j++){
        println("Old Sub DisplayName::" + oldsubCat[j].displayName)
        println("New Sub DisplayName::" + newsubCat[j].displayName)

        println("Old Sub id::" + oldsubCat[j].id)
        println("New Sub id::" + newsubCat[j].id)

        println("Old Sub count::" + oldsubCat[j].count)
        println("New Sub count::" + newsubCat[j].count)
    }

}