static void Main(string[] args) { var someObject = new JSONExample { Username = "******", SomeStrings = new System.Collections.Generic.List <string> { "a", "s" }, Value = 5 }; var json = JsonConvert.SerializeObject(someObject); Console.WriteLine(json); var someOtherObject = JsonConvert.DeserializeObject <JSONExample>(json); }
public void SomeApiFunciton(JSONExample dfasdf) { }