Created
June 28, 2016 07:57
-
-
Save JohnBaek/702507f3cdeb2ab930f529b0f1a613f9 to your computer and use it in GitHub Desktop.
C#_Read_Json_and_Convert.cs
This file contains 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
//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