Error displaying JSON Array Data - Complex object types cannot be converted to simple values
<p>I currently have a MoocJson.json file that looks like this:</p>

<pre><code>[
 {"body":"some text goes here", 
  "link":"a link is here",
  "name":"name of product goes here",
  "language":"language goes here",
  "tags":["tag1","tag2","tag3","tag4"],
  "initiative":"initiative content goes here",
  "start_date":"start date goes here",
  "categories":["cat1","cat2","cat3"]
 },
{"body":"2 some text goes here", 
 "link":"2 a link is here",
 "name":"2 name of product goes here",
 "language":"2 language goes here",
 "tags":["2 tag1","2 tag2","2 tag3","2 tag4"],
 "initiative":"2 initiative content goes here",
 "start_date":"2 start date goes here",
 "categories":["2 cat1","2 cat2","2 cat3"]
 },
{"body":"3 some text goes here", 
 "link":"3 a link is here",
 "name":"3 name of product goes here",
 "language":"3 language goes here",
 "tags":["3 tag1","3 tag2"],
 "initiative":"2 initiative content goes here",
 "start_date":"2 start date goes here",
 "categories":["3 cat1"]
 }
]
// End of JSON file
</code></pre>

<p>My CF code is as follows:</p>

<pre><code>&lt;cffile action="read" file="#ExpandPath("./MoocJson.json")#" variable="myxml"&gt;
&lt;cfset mydoc = deserializedJSON(myxml)&gt;
&lt;cfdump var="#mydoc#"&gt;   &lt;!--- this dumps out the JSON in Array format ---&gt;

&lt;cfoutput&gt; My Doc Length = #arraylen(mydoc)#&lt;/cfoutput&gt;

&lt;!--- Loop through Array of mydoc and out put content ---&gt;
&lt;cfoutput&gt;
&lt;cfloop from="1" to="#arrayLen(mydoc)#" index="i"&gt;
&lt;cfset Course = mydoc[i]&gt;

#Course.Name# &lt;br&gt;
#Course.body# &lt;br&gt;
#Course.language# &lt;br&gt;
#Course.link# &lt;br&gt;
#Course.initiative# &lt;br&gt;
#Course.start_date# &lt;br&gt;
#Course.tags# &lt;br&gt;
#Course.categories# &lt;br&gt;

&lt;/cfloop&gt;
&lt;/cfoutput&gt;
&lt;!--- End of Code ---&gt;
</code></pre>

<p>When I run it, everything but the TAGS and CATEGORIES is displayed. For these two I get an error of </p>

<blockquote>
  <p>Complex object types cannot be converted to simple values</p>
</blockquote>

<p>How do I read the TAGS and CATEGORIES arrays with in the main array?</p>