1

Closed

JSON Schema Parser Fails

description

The JSON Schema Parser (V5.04) cannot handle this JSON (as run in Linqpad):
string data = @"{""payment_methods"":""Amex, Cash, Check, Discover, Mastercard, Visa"",""restaurantmealprice"":"""",""phone"":""(720) 746-9355"",""reviews"":"""",""website"":""http://pl.yext.com/plclick?pid=476af49678&ids=205234&continue=http%3A%2F%2Fbikerjimsdogs.com&target=website"",""hours"":{""dayHours"":[{""interval"":{""start"":""11:00 AM"",""end"":""10:00 PM""},""day"":""MONDAY""},{""interval"":{""start"":""11:00 AM"",""end"":""10:00 PM""},""day"":""TUESDAY""},{""interval"":{""start"":""11:00 AM"",""end"":""10:00 PM""},""day"":""WEDNESDAY""},{""interval"":{""start"":""11:00 AM"",""end"":""10:00 PM""},""day"":""THURSDAY""},{""interval"":{""start"":""11:00 AM"",""end"":""3:00 AM""},""day"":""FRIDAY""},{""interval"":{""start"":""11:00 AM"",""end"":""3:00 AM""},""day"":""SATURDAY""},{""interval"":{""start"":""11:00 AM"",""end"":""10:00 PM""},""day"":""SUNDAY""}]},""offers"":"""",""reviewOverallReviewRating"":""0"",""businessoverview"":""We specialize in gourmet wild game and ethnic sausages and hot dogs. We've been featured on \""No Reservations\"" with Anthony Bourdain and the Food Networks \""The Best Thing I Ever Ate\""."",""sourcevendor"":""54::60"",""breadcrumb"":""payment_methods=205234_yext_whitelabel#54--phone=205234_yext_whitelabel#54--website=205234_yext_whitelabel#54--hours=205234_yext_whitelabel#54--name=205234_yext_whitelabel#54--businessoverview=205234_yext_whitelabel#54"",""id"":""271210628"",""sourcecomposite"":""205234#54::708859187#60"",""customer_message"":"""",""name"":""Biker Jim's Gourmet Dogs"",""reference_id"":"""",""sourceid"":""205234::708859187"",""editorials"":"""",""images"":"""",""reviewTotalUserReviews"":""0""}";

var schema = JsonSchema.Parse(data);

schema.Dump(); // as: { "id": "271210628" } 
It shows only one node as 'id' and it has no properties.

file attachments

Closed Apr 30, 2013 at 8:52 AM by JamesNK
It fails because that's not a JSON schema....?

comments