Skip to content

Instantly share code, notes, and snippets.

@ahallock
Last active August 31, 2015 17:20
Show Gist options
  • Save ahallock/38afc33f1f6d16064d5c to your computer and use it in GitHub Desktop.
Save ahallock/38afc33f1f6d16064d5c to your computer and use it in GitHub Desktop.
JSON Parse Error
{"meta":{"code":200,"requestId":"55e24380498e9e02e6ef687d"},"response":{"venues":[{"id":"4b0891aef964a520a00e23e3","name":"Dewey's Pizza","location":{"address":"18516 Detroit Ave","crossStreet":"at Riverside Dr.","lat":41.48187160902967,"lng":-81.82731986045837,"distance":22,"postalCode":"44107","cc":"US","city":"Lakewood","state":"OH","country":"United States","formattedAddress":["18516 Detroit Ave (at Riverside Dr.)","Lakewood, OH 44107","United States"]},"categories":[{"id":"4bf58dd8d48988d1ca941735","name":"Pizza Place","pluralName":"Pizza Places","shortName":"Pizza","icon":{"prefix":"https:\/\/ss3.4sqi.net\/img\/categories_v2\/food\/pizza_","suffix":".png"},"primary":true}],"verified":true,"stats":{"checkinsCount":2978,"usersCount":1027,"tipCount":22},"hasMenu":true,"allowMenuUrlEdit":true,"specials":{"count":0,"items":[]},"hereNow":{"count":0,"summary":"Nobody here","groups":[]},"storeId":"","referralId":"v-1440891776"},{"id":"4ad8782ef964a520991121e3","name":"Dewey's Pizza","location":{"address":"2194 Lee Rd","lat":41.49993917384246,"lng":-81.56564381799863,"distance":21906,"postalCode":"44118","cc":"US","city":"Cleveland","state":"OH","country":"United States","formattedAddress":["2194 Lee Rd","Cleveland, OH 44118","United States"]},"categories":[{"id":"4bf58dd8d48988d1ca941735","name":"Pizza Place","pluralName":"Pizza Places","shortName":"Pizza","icon":{"prefix":"https:\/\/ss3.4sqi.net\/img\/categories_v2\/food\/pizza_","suffix":".png"},"primary":true}],"verified":true,"stats":{"checkinsCount":1908,"usersCount":818,"tipCount":34},"hasMenu":true,"allowMenuUrlEdit":true,"specials":{"count":0,"items":[]},"hereNow":{"count":0,"summary":"Nobody here","groups":[]},"storeId":"","referralId":"v-1440891776"},{"id":"4c9d39bf542b224bb813e89f","name":"Lakewood Pizza Pan","location":{"address":"13619 Detroit Ave","lat":41.4810775,"lng":-81.82675495,"distance":118,"postalCode":"44107","cc":"US","city":"Lakewood","state":"OH","country":"United States","formattedAddress":["13619 Detroit Ave","Lakewood, OH 44107","United States"]},"categories":[{"id":"4bf58dd8d48988d1ca941735","name":"Pizza Place","pluralName":"Pizza Places","shortName":"Pizza","icon":{"prefix":"https:\/\/ss3.4sqi.net\/img\/categories_v2\/food\/pizza_","suffix":".png"},"primary":true}],"verified":false,"stats":{"checkinsCount":4,"usersCount":3,"tipCount":0},"hasMenu":true,"allowMenuUrlEdit":true,"specials":{"count":0,"items":[]},"hereNow":{"count":0,"summary":"Nobody here","groups":[]},"referralId":"v-1440891776"},{"id":"4b685bfcf964a520ba732be3","name":"Papa John's Pizza","location":{"address":"18400 Detroit Ave","crossStreet":"at Park Row","lat":41.482909169593334,"lng":-81.8261960404547,"distance":129,"postalCode":"44107","cc":"US","city":"Lakewood","state":"OH","country":"United States","formattedAddress":["18400 Detroit Ave (at Park Row)","Lakewood, OH 44107","United States"]},"categories":[{"id":"4bf58dd8d48988d1ca941735","name":"Pizza Place","pluralName":"Pizza Places","shortName":"Pizza","icon":{"prefix":"https:\/\/ss3.4sqi.net\/img\/categories_v2\/food\/pizza_","suffix":".png"},"primary":true}],"verified":true,"stats":{"checkinsCount":295,"usersCount":86,"tipCount":4},"hasMenu":true,"allowMenuUrlEdit":true,"specials":{"count":0,"items":[]},"hereNow":{"count":0,"summary":"Nobody here","groups":[]},"storeId":"349","referralId":"v-1440891776"},{"id":"4c004c25f61ea5935badeb13","name":"Donatos Pizza","location":{"address":"18100 Detroit Ave","crossStreet":"at W Clifton Blvd","lat":41.484430319262486,"lng":-81.82313151264353,"distance":433,"postalCode":"44107","cc":"US","city":"Lakewood","state":"OH","country":"United States","formattedAddress":["18100 Detroit Ave (at W Clifton Blvd)","Lakewood, OH 44107","United States"]},"categories":[{"id":"4bf58dd8d48988d1ca941735","name":"Pizza Place","pluralName":"Pizza Places","shortName":"Pizza","icon":{"prefix":"https:\/\/ss3.4sqi.net\/img\/categories_v2\/food\/pizza_","suffix":".png"},"primary":true}],"verified":true,"stats":{"checkinsCount":299,"usersCount":194,"tipCount":2},"hasMenu":true,"allowMenuUrlEdit":true,"specials":{"count":0,"items":[]},"hereNow":{"count":0,"summary":"Nobody here","groups":[]},"storeId":"126","referralId":"v-1440891776"},{"id":"4ad4bff2f964a520b6e920e3","name":"Geppetto's Pizza \/ Johnny Malloy's","location":{"address":"17103 Detroit Ave","lat":41.48522735862513,"lng":-81.81587400452527,"distance":1013,"postalCode":"44107","cc":"US","city":"Lakewood","state":"OH","country":"United States","formattedAddress":["17103 Detroit Ave","Lakewood, OH 44107","United States"]},"categories":[{"id":"4bf58dd8d48988d16c941735","name":"Burger Joint","pluralName":"Burger Joints","shortName":"Burgers","icon":{"prefix":"https:\/\/ss3.4sqi.net\/img\/categories_v2\/food\/burger_","suffix":".png"},"primary":true}],"verified":false,"stats":{"checkinsCount":1997,"usersCount":753,"tipCount":24},"hasMenu":true,"allowMenuUrlEdit":true,"specials":{"count":0,"items":[]},"hereNow":{"count":0,"summary":"Nobody here","groups":[]},"referralId":"v-1440891776"},{"id":"5075f7e5e4b045554c43494f","name":"Pizza Hut","location":{"address":"19565 Detroit Rd","lat":41.47973581,"lng":-81.8393607,"distance":1041,"postalCode":"44116","cc":"US","city":"Rocky River","state":"OH","country":"United States","formattedAddress":["19565 Detroit Rd","Rocky River, OH 44116","United States"]},"categories":[{"id":"4bf58dd8d48988d1ca941735","name":"Pizza Place","pluralName":"Pizza Places","shortName":"Pizza","icon":{"prefix":"https:\/\/ss3.4sqi.net\/img\/categories_v2\/food\/pizza_","suffix":".png"},"primary":true}],"verified":true,"stats":{"checkinsCount":24,"usersCount":14,"tipCount":0},"hasMenu":true,"allowMenuUrlEdit":true,"specials":{"count":0,"items":[]},"hereNow":{"count":0,"summary":"Nobody here","groups":[]},"storeId":"316857","referralId":"v-1440891776"},{"id":"4f3252b819836c91c7cc6bc8","name":"Spanky's Pizza","location":{"address":"16813 Madison Ave","lat":41.477514,"lng":-81.814537,"distance":1176,"postalCode":"44107","cc":"US","city":"Lakewood","state":"OH","country":"United States","formattedAddress":["16813 Madison Ave","Lakewood, OH 44107","United States"]},"categories":[{"id":"4bf58dd8d48988d1ca941735","name":"Pizza Place","pluralName":"Pizza Places","shortName":"Pizza","icon":{"prefix":"https:\/\/ss3.4sqi.net\/img\/categories_v2\/food\/pizza_","suffix":".png"},"primary":true}],"verified":false,"stats":{"checkinsCount":0,"usersCount":0,"tipCount":0},"allowMenuUrlEdit":true,"specials":{"count":0,"items":[]},"hereNow":{"count":0,"summary":"Nobody here","groups":[]},"referralId":"v-1440891776"},{"id":"4c145a3db7b9c9282351ab37","name":"Little Caesars Pizza","location":{"address":"13342 Madison Ave","lat":41.477286217236006,"lng":-81.7834093632973,"distance":3696,"postalCode":"44107","cc":"US","city":"Lakewood","state":"OH","country":"United States","formattedAddress":["13342 Madison Ave","Lakewood, OH 44107","United States"]},"categories":[{"id":"4bf58dd8d48988d1ca941735","name":"Pizza Place","pluralName":"Pizza Places","shortName":"Pizza","icon":{"prefix":"https:\/\/ss3.4sqi.net\/img\/categories_v2\/food\/pizza_","suffix":".png"},"primary":true}],"verified":true,"stats":{"checkinsCount":511,"usersCount":150,"tipCount":13},"hasMenu":true,"allowMenuUrlEdit":true,"specials":{"count":0,"items":[]},"hereNow":{"count":0,"summary":"Nobody here","groups":[]},"storeId":"19350002","referralId":"v-1440891776"},{"id":"4b4a274ff964a520947c26e3","name":"Georgio's Oven Fresh Pizza Co","location":{"address":"13804 Detroit Ave","crossStreet":"at Giel Ave","lat":41.485571,"lng":-81.78799843333333,"distance":3298,"postalCode":"44107","cc":"US","city":"Lakewood","state":"OH","country":"United States","formattedAddress":["13804 Detroit Ave (at Giel Ave)","Lakewood, OH 44107","United States"]},"categories":[{"id":"4bf58dd8d48988d1ca941735","name":"Pizza Place","pluralName":"Pizza Places","shortName":"Pizza","icon":{"prefix":"https:\/\/ss3.4sqi.net\/img\/categories_v2\/food\/pizza_","suffix":".png"},"primary":true}],"verified":false,"stats":{"checkinsCount":145,"usersCount":63,"tipCount":1},"hasMenu":true,"allowMenuUrlEdit":true,"specials":{"count":0,"items":[]},"hereNow":{"count":0,"summary":"Nobody here","groups":[]},"referralId":"v-1440891776"},{"id":"4d2b76c5068e8cfaa926e34c","name":"Marco Pizza","location":{"address":"14121 Lorain Ave","lat":41.45443081855774,"lng":-81.792424,"distance":4232,"postalCode":"44111","cc":"US","city":"Cleveland","state":"OH","country":"United States","formattedAddress":["14121 Lorain Ave","Cleveland, OH 44111","United States"]},"categories":[{"id":"4bf58dd8d48988d1ca941735","name":"Pizza Place","pluralName":"Pizza Places","shortName":"Pizza","icon":{"prefix":"https:\/\/ss3.4sqi.net\/img\/categories_v2\/food\/pizza_","suffix":".png"},"primary":true}],"verified":false,"stats":{"checkinsCount":88,"usersCount":49,"tipCount":2},"allowMenuUrlEdit":true,"specials":{"count":0,"items":[]},"hereNow":{"count":0,"summary":"Nobody here","groups":[]},"referralId":"v-1440891776"},{"id":"4da23b9c0f578cfa29d49e18","name":"Pizza Hut Express","location":{"address":"20900 Westgate","crossStreet":"in Target","lat":41.45794105186428,"lng":-81.85067653656006,"distance":3320,"postalCode":"44126","cc":"US","city":"Fairview Park","state":"OH","country":"United States","formattedAddress":["20900 Westgate (in Target)","Fairview Park, OH 44126","United States"]},"categories":[{"id":"4bf58dd8d48988d1ca941735","name":"Pizza Place","pluralName":"Pizza Places","shortName":"Pizza","icon":{"prefix":"https:\/\/ss3.4sqi.net\/img\/categories_v2\/food\/pizza_","suffix":".png"},"primary":true}],"verified":false,"stats":{"checkinsCount":5,"usersCount":3,"tipCount":0},"allowMenuUrlEdit":true,"specials":{"count":0,"items":[]},"hereNow":{"count":0,"summary":"Nobody here","groups":[]},"referralId":"v-1440891776"},{"id":"4c703a769375a093e4660637","name":"Romeo's Pizza","location":{"address":"2064 Clague Rd","lat":41.457437,"lng":-81.88336541666666,"distance":5423,"postalCode":"44145","cc":"US","city":"Westlake","state":"OH","country":"United States","formattedAddress":["2064 Clague Rd","Westlake, OH 44145","United States"]},"categories":[{"id":"4bf58dd8d48988d1ca941735","name":"Pizza Place","pluralName":"Pizza Places","shortName":"Pizza","icon":{"prefix":"https:\/\/ss3.4sqi.net\/img\/categories_v2\/food\/pizza_","suffix":".png"},"primary":true}],"verified":true,"stats":{"checkinsCount":82,"usersCount":58,"tipCount":1},"hasMenu":true,"allowMenuUrlEdit":true,"specials":{"count":0,"items":[]},"hereNow":{"count":0,"summary":"Nobody here","groups":[]},"referralId":"v-1440891776"},{"id":"4d7d3c6a5a396dcb52f984fb","name":"Geppetto's Pizza & Ribs","location":{"address":"15233 Triskett Rd","lat":41.455771,"lng":-81.80182814598083,"distance":3615,"postalCode":"44111","cc":"US","city":"Cleveland","state":"OH","country":"United States","formattedAddress":["15233 Triskett Rd","Cleveland, OH 44111","United States"]},"categories":[{"id":"4bf58dd8d48988d1ca941735","name":"Pizza Place","pluralName":"Pizza Places","shortName":"Pizza","icon":{"prefix":"https:\/\/ss3.4sqi.net\/img\/categories_v2\/food\/pizza_","suffix":".png"},"primary":true}],"verified":false,"stats":{"checkinsCount":35,"usersCount":21,"tipCount":0},"allowMenuUrlEdit":true,"specials":{"count":0,"items":[]},"hereNow":{"count":0,"summary":"Nobody here","groups":[]},"referralId":"v-1440891776"},{"id":"4b5609ebf964a52031fd27e3","name":"Pizza Hut","location":{"address":"1407 W 117th St","crossStreet":"at Detroit Ave","lat":41.48327965,"lng":-81.76845977,"distance":4906,"postalCode":"44107","cc":"US","city":"Cleveland","state":"OH","country":"United States","formattedAddress":["1407 W 117th St (at Detroit Ave)","Cleveland, OH 44107","United States"]},"categories":[{"id":"4bf58dd8d48988d1ca941735","name":"Pizza Place","pluralName":"Pizza Places","shortName":"Pizza","icon":{"prefix":"https:\/\/ss3.4sqi.net\/img\/categories_v2\/food\/pizza_","suffix":".png"},"primary":true}],"verified":true,"stats":{"checkinsCount":450,"usersCount":238,"tipCount":3},"hasMenu":true,"allowMenuUrlEdit":true,"specials":{"count":0,"items":[]},"hereNow":{"count":0,"summary":"Nobody here","groups":[]},"storeId":"316548","referralId":"v-1440891776"},{"id":"4c8c3659f0ce236ae26116ef","name":"Georgio's Oven Fresh Pizza Co.","location":{"address":"3884 W 130th St","lat":41.44824331563925,"lng":-81.77993059158325,"distance":5456,"postalCode":"44111","cc":"US","city":"Cleveland","state":"OH","country":"United States","formattedAddress":["3884 W 130th St","Cleveland, OH 44111","United States"]},"categories":[{"id":"4bf58dd8d48988d1ca941735","name":"Pizza Place","pluralName":"Pizza Places","shortName":"Pizza","icon":{"prefix":"https:\/\/ss3.4sqi.net\/img\/categories_v2\/food\/pizza_","suffix":".png"},"primary":true}],"verified":false,"stats":{"checkinsCount":349,"usersCount":38,"tipCount":2},"allowMenuUrlEdit":true,"specials":{"count":0,"items":[]},"hereNow":{"count":0,"summary":"Nobody here","groups":[]},"referralId":"v-1440891776"},{"id":"4eb86c93b634a048616cbbc4","name":"Pizza Hut Express","location":{"address":"3100 W 117th St","crossStreet":"in Target","lat":41.46910794012458,"lng":-81.77088093362023,"distance":4919,"postalCode":"44111","cc":"US","city":"Cleveland","state":"OH","country":"United States","formattedAddress":["3100 W 117th St (in Target)","Cleveland, OH 44111","United States"]},"categories":[{"id":"4bf58dd8d48988d1ca941735","name":"Pizza Place","pluralName":"Pizza Places","shortName":"Pizza","icon":{"prefix":"https:\/\/ss3.4sqi.net\/img\/categories_v2\/food\/pizza_","suffix":".png"},"primary":true}],"verified":false,"stats":{"checkinsCount":64,"usersCount":9,"tipCount":0},"allowMenuUrlEdit":true,"specials":{"count":0,"items":[]},"hereNow":{"count":0,"summary":"Nobody here","groups":[]},"referralId":"v-1440891776"},{"id":"4c7c5269f56a3704c4c50746","name":"Pizza Hut","location":{"address":"10616 Lorain Ave","crossStreet":"at W 106th Ave","lat":41.46523995,"lng":-81.76033775,"distance":5888,"postalCode":"44111","cc":"US","city":"Cleveland","state":"OH","country":"United States","formattedAddress":["10616 Lorain Ave (at W 106th Ave)","Cleveland, OH 44111","United States"]},"categories":[{"id":"4bf58dd8d48988d1ca941735","name":"Pizza Place","pluralName":"Pizza Places","shortName":"Pizza","icon":{"prefix":"https:\/\/ss3.4sqi.net\/img\/categories_v2\/food\/pizza_","suffix":".png"},"primary":true}],"verified":true,"stats":{"checkinsCount":120,"usersCount":40,"tipCount":1},"hasMenu":true,"allowMenuUrlEdit":true,"specials":{"count":0,"items":[]},"hereNow":{"count":0,"summary":"Nobody here","groups":[]},"storeId":"316693","referralId":"v-1440891776"},{"id":"50de2698e4b0b7819a3cdf51","name":"Pizza Hut","location":{"address":"14129 Puritas Ave","lat":41.43330125,"lng":-81.79263548,"distance":6149,"postalCode":"44135","cc":"US","city":"Cleveland","state":"OH","country":"United States","formattedAddress":["14129 Puritas Ave","Cleveland, OH 44135","United States"]},"categories":[{"id":"4bf58dd8d48988d1ca941735","name":"Pizza Place","pluralName":"Pizza Places","shortName":"Pizza","icon":{"prefix":"https:\/\/ss3.4sqi.net\/img\/categories_v2\/food\/pizza_","suffix":".png"},"primary":true}],"verified":true,"stats":{"checkinsCount":42,"usersCount":10,"tipCount":0},"allowMenuUrlEdit":true,"specials":{"count":0,"items":[]},"hereNow":{"count":0,"summary":"Nobody here","groups":[]},"storeId":"316920","referralId":"v-1440891776"},{"id":"4b48e6b3f964a520825c26e3","name":"Georgio's Oven Fresh Pizza Co","location":{"address":"23144 Lorain Rd","lat":41.43649756326278,"lng":-81.87695775437808,"distance":6551,"postalCode":"44070","cc":"US","city":"North Olmsted","state":"OH","country":"United States","formattedAddress":["23144 Lorain Rd","North Olmsted, OH 44070","United States"]},"categories":[{"id":"4bf58dd8d48988d1ca941735","name":"Pizza Place","pluralName":"Pizza Places","shortName":"Pizza","icon":{"prefix":"https:\/\/ss3.4sqi.net\/img\/categories_v2\/food\/pizza_","suffix":".png"},"primary":true}],"verified":false,"stats":{"checkinsCount":36,"usersCount":26,"tipCount":4},"hasMenu":true,"allowMenuUrlEdit":true,"specials":{"count":0,"items":[]},"hereNow":{"count":0,"summary":"Nobody here","groups":[]},"referralId":"v-1440891776"},{"id":"4b1d8e4af964a5202b1224e3","name":"Dina's Pizza & Pub","location":{"address":"5701 Memphis Ave","lat":41.43966328708997,"lng":-81.72635198193136,"distance":9652,"postalCode":"44144","cc":"US","city":"Cleveland","state":"OH","country":"United States","formattedAddress":["5701 Memphis Ave","Cleveland, OH 44144","United States"]},"categories":[{"id":"4bf58dd8d48988d116941735","name":"Bar","pluralName":"Bars","shortName":"Bar","icon":{"prefix":"https:\/\/ss3.4sqi.net\/img\/categories_v2\/nightlife\/pub_","suffix":".png"},"primary":true}],"verified":false,"stats":{"checkinsCount":3721,"usersCount":1011,"tipCount":36},"hasMenu":true,"allowMenuUrlEdit":true,"specials":{"count":0,"items":[]},"hereNow":{"count":0,"summary":"Nobody here","groups":[]},"referralId":"v-1440891776"},{"id":"4b870069f964a520c3aa31e3","name":"Donatos Pizza","location":{"address":"26180 Lorain Rd","lat":41.4201722731818,"lng":-81.91258832917735,"distance":9907,"postalCode":"44070","cc":"US","city":"North Olmsted","state":"OH","country":"United States","formattedAddress":["26180 Lorain Rd","North Olmsted, OH 44070","United States"]},"categories":[{"id":"4bf58dd8d48988d1ca941735","name":"Pizza Place","pluralName":"Pizza Places","shortName":"Pizza","icon":{"prefix":"https:\/\/ss3.4sqi.net\/img\/categories_v2\/food\/pizza_","suffix":".png"},"primary":true}],"verified":true,"stats":{"checkinsCount":150,"usersCount":88,"tipCount":2},"hasMenu":true,"allowMenuUrlEdit":true,"specials":{"count":0,"items":[]},"hereNow":{"count":0,"summary":"Nobody here","groups":[]},"storeId":"104","referralId":"v-1440891776"},{"id":"4bb7cafa98c7ef3bed603002","name":"CiCi's Pizza","location":{"address":"4824 Ridge Rd","lat":41.4234291,"lng":-81.73509709999999,"distance":10087,"postalCode":"44144","cc":"US","city":"Brooklyn","state":"OH","country":"United States","formattedAddress":["4824 Ridge Rd","Brooklyn, OH 44144","United States"]},"categories":[{"id":"4bf58dd8d48988d1ca941735","name":"Pizza Place","pluralName":"Pizza Places","shortName":"Pizza","icon":{"prefix":"https:\/\/ss3.4sqi.net\/img\/categories_v2\/food\/pizza_","suffix":".png"},"primary":true}],"verified":false,"stats":{"checkinsCount":1418,"usersCount":781,"tipCount":11},"hasMenu":true,"allowMenuUrlEdit":true,"specials":{"count":0,"items":[]},"hereNow":{"count":0,"summary":"Nobody here","groups":[]},"referralId":"v-1440891776"},{"id":"4ccd9f01ba0a54814a6e4459","name":"Little Caesars Pizza","location":{"address":"6727 Denison Ave","lat":41.460714,"lng":-81.734604,"distance":8086,"postalCode":"44102","cc":"US","city":"Cleveland","state":"OH","country":"United States","formattedAddress":["6727 Denison Ave","Cleveland, OH 44102","United States"]},"categories":[{"id":"4bf58dd8d48988d1ca941735","name":"Pizza Place","pluralName":"Pizza Places","shortName":"Pizza","icon":{"prefix":"https:\/\/ss3.4sqi.net\/img\/categories_v2\/food\/pizza_","suffix":".png"},"primary":true}],"verified":true,"stats":{"checkinsCount":75,"usersCount":36,"tipCount":14},"hasMenu":true,"allowMenuUrlEdit":true,"specials":{"count":0,"items":[]},"hereNow":{"count":0,"summary":"Nobody here","groups":[]},"storeId":"19340001","referralId":"v-1440891776"},{"id":"4c8ff53d590ab1f7194de37d","name":"Georgio's Oven Fresh Pizza Co","location":{"address":"622 Dover Center Rd","lat":41.4785218226181,"lng":-81.92185163497925,"distance":7897,"postalCode":"44140","cc":"US","city":"Bay Village","state":"OH","country":"United States","formattedAddress":["622 Dover Center Rd","Bay Village, OH 44140","United States"]},"categories":[{"id":"4bf58dd8d48988d1ca941735","name":"Pizza Place","pluralName":"Pizza Places","shortName":"Pizza","icon":{"prefix":"https:\/\/ss3.4sqi.net\/img\/categories_v2\/food\/pizza_","suffix":".png"},"primary":true}],"verified":false,"stats":{"checkinsCount":231,"usersCount":21,"tipCount":1},"hasMenu":true,"allowMenuUrlEdit":true,"specials":{"count":0,"items":[]},"hereNow":{"count":0,"summary":"Nobody here","groups":[]},"referralId":"v-1440891776"},{"id":"4d584e1492326ea8328564c0","name":"Georgio's Oven Fresh Pizza Company","location":{"address":"7146 Denison Ave","lat":41.46239801194347,"lng":-81.73774455037591,"distance":7781,"postalCode":"44102","cc":"US","city":"Cleveland","state":"OH","country":"United States","formattedAddress":["7146 Denison Ave","Cleveland, OH 44102","United States"]},"categories":[{"id":"4bf58dd8d48988d1ca941735","name":"Pizza Place","pluralName":"Pizza Places","shortName":"Pizza","icon":{"prefix":"https:\/\/ss3.4sqi.net\/img\/categories_v2\/food\/pizza_","suffix":".png"},"primary":true}],"verified":false,"stats":{"checkinsCount":79,"usersCount":23,"tipCount":1},"hasMenu":true,"allowMenuUrlEdit":true,"specials":{"count":0,"items":[]},"hereNow":{"count":0,"summary":"Nobody here","groups":[]},"referralId":"v-1440891776"},{"id":"4c488d9c1ddec92809f7a032","name":"Kicker's Pizza & More","location":{"address":"15089 Snow Rd","lat":41.403422724388136,"lng":-81.80325508117676,"distance":8981,"postalCode":"44142","cc":"US","city":"Brook Park","state":"OH","country":"United States","formattedAddress":["15089 Snow Rd","Brook Park, OH 44142","United States"]},"categories":[{"id":"4bf58dd8d48988d1ca941735","name":"Pizza Place","pluralName":"Pizza Places","shortName":"Pizza","icon":{"prefix":"https:\/\/ss3.4sqi.net\/img\/categories_v2\/food\/pizza_","suffix":".png"},"primary":true}],"verified":false,"stats":{"checkinsCount":54,"usersCount":37,"tipCount":1},"allowMenuUrlEdit":true,"specials":{"count":0,"items":[]},"hereNow":{"count":0,"summary":"Nobody here","groups":[]},"referralId":"v-1440891776"},{"id":"4adb5f42f964a520902621e3","name":"Donte's Restaurant & Pizza Shop","location":{"address":"20850 Sheldon Rd","lat":41.389837861061096,"lng":-81.852881,"distance":10487,"postalCode":"44142","cc":"US","city":"Cleveland","state":"OH","country":"United States","formattedAddress":["20850 Sheldon Rd","Cleveland, OH 44142","United States"]},"categories":[{"id":"4bf58dd8d48988d1ca941735","name":"Pizza Place","pluralName":"Pizza Places","shortName":"Pizza","icon":{"prefix":"https:\/\/ss3.4sqi.net\/img\/categories_v2\/food\/pizza_","suffix":".png"},"primary":true}],"verified":false,"stats":{"checkinsCount":775,"usersCount":278,"tipCount":17},"hasMenu":true,"allowMenuUrlEdit":true,"specials":{"count":0,"items":[]},"hereNow":{"count":0,"summary":"Nobody here","groups":[]},"referralId":"v-1440891776"},{"id":"4e74207d45ddd4323f25d49d","name":"kicker's pizza & more","location":{"address":"15089 Snow Rd","lat":41.40349416437059,"lng":-81.80319629889284,"distance":8974,"postalCode":"44142","cc":"US","city":"Brook Park","state":"OH","country":"United States","formattedAddress":["15089 Snow Rd","Brook Park, OH 44142","United States"]},"categories":[{"id":"4bf58dd8d48988d1ca941735","name":"Pizza Place","pluralName":"Pizza Places","shortName":"Pizza","icon":{"prefix":"https:\/\/ss3.4sqi.net\/img\/categories_v2\/food\/pizza_","suffix":".png"},"primary":true}],"verified":false,"stats":{"checkinsCount":21,"usersCount":7,"tipCount":1},"hasMenu":true,"allowMenuUrlEdit":true,"specials":{"count":0,"items":[]},"hereNow":{"count":0,"summary":"Nobody here","groups":[]},"referralId":"v-1440891776"},{"id":"4b9c1c80f964a520384b36e3","name":"Romeo's Pizza","location":{"address":"13349 Snow Rd","lat":41.404802,"lng":-81.784488,"distance":9312,"postalCode":"44142","cc":"US","city":"Brook Park","state":"OH","country":"United States","formattedAddress":["13349 Snow Rd","Brook Park, OH 44142","United States"]},"categories":[{"id":"4bf58dd8d48988d110941735","name":"Italian Restaurant","pluralName":"Italian Restaurants","shortName":"Italian","icon":{"prefix":"https:\/\/ss3.4sqi.net\/img\/categories_v2\/food\/italian_","suffix":".png"},"primary":true}],"verified":true,"stats":{"checkinsCount":94,"usersCount":58,"tipCount":0},"hasMenu":true,"allowMenuUrlEdit":true,"specials":{"count":0,"items":[]},"hereNow":{"count":0,"summary":"Nobody here","groups":[]},"storeId":"","referralId":"v-1440891776"}]}}
var nats = require('nats').connect();
var fs = require('fs');
var foursquareJSON = fs.readFileSync('./4sq.json', { encoding: 'utf8' });
var msg = JSON.stringify({
foo: 'bar',
body: foursquareJSON
});
nats.subscribe('nats-test', function(msg) {
try {
var obj = JSON.parse(msg);
console.log(obj.foo);
var body = JSON.parse(obj.body);
console.log(body.meta.requestId);
} catch(e) {
console.log(msg);
throw e;
}
});
for (var i = 0; i < 600; i++) {
nats.publish('nats-test', msg);
}
nats.on('error', function(err) {
console.log(err);
});
var nats = require('nats').connect();
var buffer = new Buffer(10000);
for (var i = 0; i < 10000; i++) {
buffer.write('a', i);
}
var s = buffer.toString();
nats.subscribe('nats-test', function(msg, reply) {
nats.publish(reply, s);
});
var j = 1;
var end = 10000;
for (var i = 1; i <= end; i++) {
nats.request('nats-test', function(response) {
if (response.length != s.length) {
console.log('s len', s.length);
console.log('response len', response.length);
throw new Error('Bad length');
}
if (++j === end) {
console.log('done');
process.exit(0);
}
});
}
nats.on('error', function(err) {
console.log(err);
});
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment