iBurnApp / iBurn-iOS

iBurn is an offline map and guide for the Burning Man art festival.
https://iburnapp.com
Mozilla Public License 2.0
69 stars 20 forks source link

Malformed JSON for camps with numbers for names e.g. 3907 and 88 #133

Closed chrisballinger closed 11 months ago

chrisballinger commented 12 months ago
2023-07-22 10:27:59.247616-0700 iBurn[67652:2681053] Error parsing JSON: {
    "contact_email" = "3907camp@gmail.com";
    description = "Welcome to 3907! The beauty of Black Rock City is we are all on equal ground - in fact we are 3907 feet above sea level, and so are you! Come to our Visitor Center, and begin your exploration of the Playa with our 10' interactive 3D map with icons supplied by you! We will gladly supply you with (mis) Information, while you browse our Boutique, enjoy a drink at our bar, alter your ideas on our Mood Swing, and find out what Smokey Bear has to say for the day! Jump into our Pit-O-Chickens, and join us in making your own Rope Man or for a yoga playshop. We are 3907: we are here to Elevate your Experience!";
    hometown = "Bishop, California";
    name = 3907;
    uid = a1X8X00000k2WqEUAU;
    url = "https://www.facebook.com/camp3907";
    year = 2023;
} Error Domain=MTLTransformerErrorHandlingErrorDomain Code=1 "Value did not match expected type" UserInfo={MTLTransformerErrorHandlingInputValueErrorKey=3907, NSLocalizedDescription=Value did not match expected type, NSLocalizedFailureReason=Expected 3907 to be of class NSString but got __NSCFNumber}
2023-07-22 10:27:59.394354-0700 iBurn[67652:2681053] Error parsing JSON: {
    "contact_email" = "<null>";
    description = "88\n12+ year DC based camp with Denizens from all over the world. We gift, we groove, we work, we chill. We eat, we cavort, we explore, we connect.";
    hometown = DC;
    name = 88;
    uid = a1X8X00000ko12mUAA;
    url = "<null>";
    year = 2023;
} Error Domain=MTLTransformerErrorHandlingErrorDomain Code=1 "Value did not match expected type" UserInfo={MTLTransformerErrorHandlingInputValueErrorKey=88, NSLocalizedDescription=Value did not match expected type, NSLocalizedFailureReason=Expected 88 to be of class NSString but got __NSCFNumber}

We could patch our JSON parser to deal with this, but it's annoying

chrisballinger commented 11 months ago

fixed