<?xml version="1.0" encoding="UTF-8"?>
<feed xmlns="http://www.w3.org/2005/Atom" xml:lang="en-gb">
	<link rel="self" type="application/atom+xml" href="https://forum.eggheads.org/app.php/feed/topic/18664" />

	<title>egghelp/eggheads community</title>
	<subtitle>Discussion of eggdrop bots, shell accounts and tcl scripts.</subtitle>
	<link href="https://forum.eggheads.org/index.php" />
	<updated>2011-10-13T08:28:13-04:00</updated>

	<author><name><![CDATA[egghelp/eggheads community]]></name></author>
	<id>https://forum.eggheads.org/app.php/feed/topic/18664</id>

		<entry>
		<author><name><![CDATA[johne]]></name></author>
		<updated>2011-10-13T08:28:13-04:00</updated>

		<published>2011-10-13T08:28:13-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=97917#p97917</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=97917#p97917"/>
		<title type="html"><![CDATA[json to nested dict]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=97917#p97917"><![CDATA[
&lt;speechl3s&gt; johne --v<br>&lt;speechl3s&gt; foreach entry [dict get $json data game plays play] {<br>&lt;speechl3s&gt;   dict with entry {<br>&lt;speechl3s&gt;     puts "desc=$desc"<br>&lt;speechl3s&gt;   }<br>&lt;speechl3s&gt; }<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=6497">johne</a> — Thu Oct 13, 2011 8:28 am</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[johne]]></name></author>
		<updated>2011-10-12T21:14:38-04:00</updated>

		<published>2011-10-12T21:14:38-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=97914#p97914</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=97914#p97914"/>
		<title type="html"><![CDATA[json to nested dict]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=97914#p97914"><![CDATA[
after converting a json feed to tcl dict i'm not able to get the values I need, is this a problem with the json format or something im doing wrong?<br><br><br><a href="http://pastebin.com/19mRWFKZ" class="postlink">http://pastebin.com/19mRWFKZ</a> post json2dict<br><br>to get the value im using<br><br>dict get $json data game plays play<br><br>which returns<br><div class="codebox"><p>Code: </p><pre><code>{sweater 25 hs 0 aoi {8462042 8467338 8469664 8470151 8470966 8475431} desc {David Moss SHOT on Jaroslav Halak} formalEventId STL54 type Shot eventid 54 hsog 0 asog 1 apb {} p2name {Jaroslav Halak} time 00:26 localtime {1:08 PM} teamid 20 xcoord -53 strength 701 as 0 pid 8469664 period 1 p3name {} hpb {} pid3 {} ycoord 29 playername {David Moss} hoi {8470860 8471348 8471392 8471698 8473485 8473534} p1name {David Moss} pid2 8470860 pid1 8469664} {sweater 5 hs 0 aoi {8466140 8466158 847074....</code></pre></div>im trying to get the "desc" key "David Moss SHOT on Jaroslav Halak"<br><br>any help would be greatly appreciated.<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=6497">johne</a> — Wed Oct 12, 2011 9:14 pm</p><hr />
]]></content>
	</entry>
	</feed>
