Prime31 Json.jsonDecode Returning Null

Hey,

I am trying to decode a text file that contains json data. The problem that I’m having though is that Prime31’s Json.jsonDecode is always returning null. I have tried .txt files with Resources.Load and saving as TextAsset and I have tried .json files with www loading. The files are downloading just fine and Debug.Log displays the correct data but once I put it through jsonDecode the json object will return null. Here is my script that is downloading the file:

using Prime31;
//later on down the code
void LoadJsonFile(string filename)
{
	TextAsset data = Resources.Load("Text/" + filename,typeof(TextAsset)) as TextAsset;
		
	if(data != null)
	{
		TestJSON json = null;
			
		try
		{
			json = Json.jsonDecode(data.text) as TestJSON;
		}
		catch(System.Exception e)
		{
			Debug.Log(e.Message);
		}
		//irrelevant code
	}
}

I know that the json file is has a valid format because I always check it here before I start up my project:

http://jsonlint.com

In the code I have also tried doing this:

		try
		{
			TestJSON json = Json.jsonDecode(data.text) as TestJSON;
		}
		catch(System.Exception e)
		{
			Debug.Log(e.Message);
		}

But jsonDecode still returned null.

Thanks in advance for any help that you guys can give me.

[BUMP] I found out that the proper object that jsonDecode returns is a Hashtable. But now the problem is that the hash table will return a count size of 1 (which I believe it could not be correct) and the value of that hash table is null so maybe it could be something to do with the jsonDecode? Do anyone recommend a better JSON decoder? I would prefer to not use 1 that has System.Xml in it since I am using the stripping level for optimization, and I would want the json decoder to use the lowest amount of memory possible. I would write one myself but at the moment I am a bit tied with bug fixes.