Skip to content

Instantly share code, notes, and snippets.

@paigecook
Created August 8, 2013 12:41
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save paigecook/6184235 to your computer and use it in GitHub Desktop.
Save paigecook/6184235 to your computer and use it in GitHub Desktop.
Classes created from JSON-Example for Blog Post 8/8/2013
public class Rootobject
{
public Parameters parameters { get; set; }
public Termhint[] termHints { get; set; }
public int total { get; set; }
}
public class Parameters
{
public string tbdb { get; set; }
public string service { get; set; }
public string template { get; set; }
public string term_prefix { get; set; }
}
public class Termhint
{
public string name { get; set; }
public string id { get; set; }
public string index { get; set; }
public Value[] values { get; set; }
public Facet[] facets { get; set; }
}
public class Value
{
public string value { get; set; }
public string pre_em { get; set; }
public string em { get; set; }
public string post_em { get; set; }
public string nature { get; set; }
public string id { get; set; }
}
public class Facet
{
public string id { get; set; }
public string name { get; set; }
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment