json etiketine sahip kayıtlar gösteriliyor. Tüm kayıtları göster
json etiketine sahip kayıtlar gösteriliyor. Tüm kayıtları göster

24 Ekim 2013

Notepad++ JSON Viewer / Formatter

Notepad++'da json bilgileri formatlayıp okunur hale getirmek veya treeview olarak görüntülemek için json viewer plugin'ini kullanabilirsiniz. Üzerinde işlem yapmak istediğiniz json'ı seçip "Show JSON Viewer" veya "Format JSON" menüsünü kullanabilirsiniz.

detaylar

26 Nisan 2012

JSON to C# nesneleri

Örnek json datasından C# nesnelerini json2csharp web uygulamasından ürettirebilirsiniz.

Ö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; }
}