Skip to content

Instantly share code, notes, and snippets.

@akira345
Created September 6, 2017 11:02
Show Gist options
  • Save akira345/b75b67bb60bdcd9c3e0ef0a821f27299 to your computer and use it in GitHub Desktop.
Save akira345/b75b67bb60bdcd9c3e0ef0a821f27299 to your computer and use it in GitHub Desktop.
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