Reading json array from a data file
Hi, how can I read an json array from a data file? 
I was looking at this part of documentation and tried to come out with something.

My test data file looks like this:
{
	"Test": 
	[
		"ok",
		"no"
	]
}​

By the way to read a string value like:
   Puts(dataFile["EpicCategory"]);
didn't work and I had to do something like this:
   Puts(String.Format("{0}", dataFile["EpicCategory"])); 

I am not that good at C# so I am stuck ¯\_(ツ)_/¯ can someone please explain me how does it work?

Try using dataFile.ReadObject<T>(), but replace T with the type you want it to read it as. So if in your data file you save a list of strings you would do dataFile.ReadObject<List<string>>().

Okay, but what about situation like this one above where the array is assigned to a certain key. For example what if I had a data like this:

{
	"TestObject": 
	{
		"DisplayName": "Test Object",
		"Tag": "TO",
		"TagColour": "#ffffff",
		"TestGroups": 
		[
			"TestGroup_1",
			"TestGroup_2"
		]
	}
}
Because I doubt that  dataFile["TestObject", "TestGroups"].ReadObject<List<string>>();  would work.

dataFile["TestObject", "TestGroups"] returns an object, so you could try to just cast to a List<string>

List<string> list = dataFile["TestObject", "TestGroup"] as List<string>;
Thank you so much, I didn't know about "as" keyword in C# and was just sitting and wondering "Hmmm how can i cast it to a List", but damn I was close ...
No problem :)