+
+<cfoutput>
+	<cfif id is "##">
+		<cfquery name="d" datasource="uam_god">
+			select term,tid from hierarchical_taxonomy where parent_tid is null
+		</cfquery>
+	</cfif>
+	<cfset x="[">
+	<cfset i=1>
+	<cfloop query="d">
+		<cfset x=x & '{"id":#tid#,parent: "####", "text":"#term#"}'>
+		<cfif i lt d.recordcount>
+			<cfset x=x & ",">
+		</cfif>
+		<cfset i=i+1>
+	</cfloop>
+	<cfset x=x & "]">
+	#x#
+</cfoutput>
+
+
+<!----------
 
 
 [{

}]


<!----------
[{
  "id":1,"text":"Root node","children":[
    {"id":2,"text":"Child node 1","children":true},

	{"id":82783975, "text":"adassfas","children":"true"}
]



[
