MORE JSON Parsing Nightmare!!

Starting a new thread because I thought I had solved this before, but I was only halfway there …

This works …

private var jsonString : String = "{ \"objectName\" : \"jointA\" , \"center\" : \"3.0 4.0 5.0\" , \"diameter\" : \"52.0\" }";

function Start ()
{
	var jsonHash : Boo.Lang.Hash = eval(jsonString);
	
	for (key in jsonHash.Keys) 
	{
		Debug.Log ("key:"+key+", value: "+ jsonHash[key]);
    } 
}

But, this does not …

private var testStr : String = "{ \"objectName\" : \"jointA\" , \"center\" : \"3.0 4.0 5.0\" , \"diameter\" : \"52.0\" }";

function Start ()
{
	makeSphere(testStr);
}

function makeSphere (jsonString : String)
{
	var jsonHash : Boo.Lang.Hash = eval(jsonString);
	
	for (key in jsonHash.Keys) 
	{
		Debug.Log ("key:"+key+", value: "+ jsonHash[key]);
    } 
}

I am very new to this (probably obvious) and really banging my head against the wall. Please help!

Just checking the Obvious.

Did you include the Hash library on the 2nd script?

I am not including anything explicitly in either script … What do I need to do to include a hash library?

Please be specific. This is all very new to me AND thanks for the help!!!

stupid question but why are you using Boo Hash and not just Hashtable?

Not much of answer, but its my understanding that the JSON string gets converted “internally” to a Boo Hash.

I tried changing the data type to Hashtable, and the error message is exactly the same.