##Versions
Dynamo 1.0.0.1180
Revit 2016
Windows 7
##What I’m doing?
Hello all,
I’m trying to parse a json (loads), as in the python example:
This is my Python code:
import sys
sys.path.append(“C:\Program Files (x86)\IronPython 2.7\Lib”)
import json
import clr
clr.AddReference(‘ProtoGeometry’)
from Autodesk.DesignScript.Geometry import *
array = json.loads(‘[“foo”, {“bar”:[“baz”, null, 1.0, 2]}]’)
OUT = array
And the problem is that for some reason, in the ironpython console it works, but in ironpython component of dynamo it doesn’t work and retrieve the following error:
Warning: IronPythonEvaluator.EvaluateIronPythonScript operation failed.
‘string’ does not contain a definition for ‘Key’