Skip to content

Instantly share code, notes, and snippets.

@atifaziz
Created October 14, 2010 21:34
Show Gist options
  • Save atifaziz/627101 to your computer and use it in GitHub Desktop.
Save atifaziz/627101 to your computer and use it in GitHub Desktop.
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