Skip to content

Instantly share code, notes, and snippets.

@JohnBaek
Created June 28, 2016 07:57
Show Gist options
  • Save JohnBaek/702507f3cdeb2ab930f529b0f1a613f9 to your computer and use it in GitHub Desktop.
Save JohnBaek/702507f3cdeb2ab930f529b0f1a613f9 to your computer and use it in GitHub Desktop.
C#_Read_Json_and_Convert.cs
//json Read
using (StreamReader sr = new StreamReader(Server.MapPath("/%{serverPath}")))
{
string json = sr.ReadToEnd();
marbles = Newtonsoft.Json.JsonConvert.DeserializeObject<List<object>>(json);
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment