Created
October 14, 2010 21:34
-
-
Save atifaziz/627101 to your computer and use it in GitHub Desktop.
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
IronPython 2.6.1 (2.6.10920.0) on .NET 4.0.30319.1 | |
Type "help", "copyright", "credits" or "license" for more information. | |
>>> import clr | |
>>> clr.AddReferenceToFileAndPath(r'C:\Jayrock\bin\net-4.0\debug\Jayrock.Json.dll') | |
>>> from Jayrock.Json.Conversion import JsonConvert | |
>>> from Jayrock.Json import JsonText | |
>>> from System.Collections.Generic import * | |
>>> json = '{x:123,y:456}' | |
>>> reader = JsonText.CreateReader(json) | |
>>> d = JsonConvert.Import(Dictionary[str,int], reader) | |
>>> print d | |
Dictionary[str, int]() | |
>>> print d.Count | |
0 |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment