Örnek JSON:
{
"glossary": {
"title": "example glossary",
"GlossDiv": {
"title": "S",
"GlossList": {
"GlossEntry": {
"ID": "SGML",
"SortAs": "SGML",
"GlossTerm": "Standard Generalized Markup Language",
"Acronym": "SGML",
"Abbrev": "ISO 8879:1986",
"GlossDef": {
"para": "A meta-markup language, used to create markup languages such as DocBook.",
"GlossSeeAlso": ["GML", "XML"]
},
"GlossSee": "markup"
}
}
}
}
}
Üretilen nesneler:
public class GlossDef
{
public string para { get; set; }
public List GlossSeeAlso { get; set; }
}
public class GlossEntry
{
public string ID { get; set; }
public string SortAs { get; set; }
public string GlossTerm { get; set; }
public string Acronym { get; set; }
public string Abbrev { get; set; }
public GlossDef GlossDef { get; set; }
public string GlossSee { get; set; }
}
public class GlossList
{
public GlossEntry GlossEntry { get; set; }
}
public class GlossDiv
{
public string title { get; set; }
public GlossList GlossList { get; set; }
}
public class Glossary
{
public string title { get; set; }
public GlossDiv GlossDiv { get; set; }
}
public class RootObject
{
public Glossary glossary { get; set; }
}
Hiç yorum yok:
Yorum Gönder