Created
September 6, 2017 11:02
-
-
Save akira345/b75b67bb60bdcd9c3e0ef0a821f27299 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
using System.Collections.Generic; | |
namespace json_sample | |
{ | |
namespace JsonNodeHoge | |
{ | |
public class Huga | |
{ | |
public List<string> piyo { get; set; } | |
} | |
} | |
public class Hoge | |
{ | |
public string stringField { get; set; } | |
public int numField { get; set; } | |
public double floatField { get; set; } | |
public bool boolField { get; set; } | |
public JsonNodeHoge.Huga huga { get; set; } | |
} | |
public class RootObject | |
{ | |
public string title { get; set; } | |
public string author { get; set; } | |
public Hoge hoge { get; set; } | |
public List<string> tags { get; set; } | |
public List<object> valiableTags { get; set; } | |
public List<int> intArray { get; set; } | |
public List<double> floatArray { get; set; } | |
public string date { get; set; } | |
public string year { get; set; } | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment