Created
July 25, 2016 19:57
-
-
Save BrianRosamilia/d132f401a644cb14f1951d049666e6fc to your computer and use it in GitHub Desktop.
Scriptcs Testing
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
#r C:\temp\Newtonsoft.Json.dll | |
using Newtonsoft.Json; | |
using Newtonsoft.Json.Linq; | |
string json = @"{ | |
CPU: 'Intel', | |
Drives: [ | |
'DVD read/writer', | |
'500 gigabyte hard drive' | |
] | |
}"; | |
dynamic d = JsonConvert.DeserializeObject<dynamic>(json); | |
Console.WriteLine((string)d.CPU); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment