<?xml version="1.0" encoding="UTF-8"?><rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
		>
<channel>
	<title>Comments on: Using JSON with StringTemplate</title>
	<atom:link href="http://hardlikesoftware.com/weblog/2006/12/12/using-json-with-stringtemplate/feed/" rel="self" type="application/rss+xml" />
	<link>http://hardlikesoftware.com/weblog/2006/12/12/using-json-with-stringtemplate/</link>
	<description>The writings of John Snyders, mostly about software.</description>
	<lastBuildDate>Thu, 09 Sep 2010 21:26:26 +0000</lastBuildDate>
	<generator>http://wordpress.org/?v=2.9.2</generator>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
		<item>
		<title>By: I82Much</title>
		<link>http://hardlikesoftware.com/weblog/2006/12/12/using-json-with-stringtemplate/comment-page-1/#comment-39342</link>
		<dc:creator>I82Much</dc:creator>
		<pubDate>Fri, 08 Jan 2010 20:48:36 +0000</pubDate>
		<guid isPermaLink="false">http://hardlikesoftware.com/weblog/2006/12/12/using-json-with-stringtemplate/#comment-39342</guid>
		<description>Looks like I figured it out on my own.

Let $vars$ be the map of key value pairs you want to iterate over.  Then all you need to do is

$vars.keys, vars.values: { k, v &#124; $k$ : $v$ }$

Awesome!

Thanks for the amazing tool.</description>
		<content:encoded><![CDATA[<p>Looks like I figured it out on my own.</p>
<p>Let $vars$ be the map of key value pairs you want to iterate over.  Then all you need to do is</p>
<p>$vars.keys, vars.values: { k, v | $k$ : $v$ }$</p>
<p>Awesome!</p>
<p>Thanks for the amazing tool.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: I82Much</title>
		<link>http://hardlikesoftware.com/weblog/2006/12/12/using-json-with-stringtemplate/comment-page-1/#comment-39323</link>
		<dc:creator>I82Much</dc:creator>
		<pubDate>Thu, 07 Jan 2010 22:28:07 +0000</pubDate>
		<guid isPermaLink="false">http://hardlikesoftware.com/weblog/2006/12/12/using-json-with-stringtemplate/#comment-39323</guid>
		<description>http://pastebin.com/f383c5537</description>
		<content:encoded><![CDATA[<p><a href="http://pastebin.com/f383c5537" rel="nofollow">http://pastebin.com/f383c5537</a></p>
]]></content:encoded>
	</item>
	<item>
		<title>By: I82Much</title>
		<link>http://hardlikesoftware.com/weblog/2006/12/12/using-json-with-stringtemplate/comment-page-1/#comment-39322</link>
		<dc:creator>I82Much</dc:creator>
		<pubDate>Thu, 07 Jan 2010 22:27:35 +0000</pubDate>
		<guid isPermaLink="false">http://hardlikesoftware.com/weblog/2006/12/12/using-json-with-stringtemplate/#comment-39322</guid>
		<description>Hi John,

I&#039;m very interested in this project, and am attempting to use it to do some code generation.

My question is, is it possible to have lists of key value pairs and access them via st?

For instance,

{
&quot;variables&quot;:[
    {
      &quot;type&quot;:&quot;int&quot;,
      &quot;name&quot;:&quot;Hello&quot;,
      &quot;enumeratedValues&quot;:{
        &quot;TEST&quot;:0,
        &quot;TEST2&quot;:1,
        &quot;TEST3&quot;:2
      }
    },
    {
      &quot;type&quot;:&quot;double&quot;,
      &quot;name&quot;:&quot;PI&quot;
    }
  ]
} 


I want to be able to loop over all of my variables, and if they have a set of enumerated values, access them and print that set of key/value pairs.  I can&#039;t figure out how to do this.  Any tips?

Thanks,

Nick</description>
		<content:encoded><![CDATA[<p>Hi John,</p>
<p>I&#8217;m very interested in this project, and am attempting to use it to do some code generation.</p>
<p>My question is, is it possible to have lists of key value pairs and access them via st?</p>
<p>For instance,</p>
<p>{<br />
&#8220;variables&#8221;:[<br />
    {<br />
      "type":"int",<br />
      "name":"Hello",<br />
      "enumeratedValues":{<br />
        "TEST":0,<br />
        "TEST2":1,<br />
        "TEST3":2<br />
      }<br />
    },<br />
    {<br />
      "type":"double",<br />
      "name":"PI"<br />
    }<br />
  ]<br />
} </p>
<p>I want to be able to loop over all of my variables, and if they have a set of enumerated values, access them and print that set of key/value pairs.  I can&#8217;t figure out how to do this.  Any tips?</p>
<p>Thanks,</p>
<p>Nick</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Jeyaram</title>
		<link>http://hardlikesoftware.com/weblog/2006/12/12/using-json-with-stringtemplate/comment-page-1/#comment-7078</link>
		<dc:creator>Jeyaram</dc:creator>
		<pubDate>Tue, 10 Jun 2008 02:19:33 +0000</pubDate>
		<guid isPermaLink="false">http://hardlikesoftware.com/weblog/2006/12/12/using-json-with-stringtemplate/#comment-7078</guid>
		<description>Thank you very much for sharing it.

FYI, I have tried using Json-Lib http://json-lib.sourceforge.net/ that implements Map and other collection interfaces. It seems to be working fine with ST but depends on more libraries. 

Regards
Jeyaram</description>
		<content:encoded><![CDATA[<p>Thank you very much for sharing it.</p>
<p>FYI, I have tried using Json-Lib <a href="http://json-lib.sourceforge.net/" rel="nofollow">http://json-lib.sourceforge.net/</a> that implements Map and other collection interfaces. It seems to be working fine with ST but depends on more libraries. </p>
<p>Regards<br />
Jeyaram</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: John Snyders</title>
		<link>http://hardlikesoftware.com/weblog/2006/12/12/using-json-with-stringtemplate/comment-page-1/#comment-7076</link>
		<dc:creator>John Snyders</dc:creator>
		<pubDate>Tue, 10 Jun 2008 01:51:23 +0000</pubDate>
		<guid isPermaLink="false">http://hardlikesoftware.com/weblog/2006/12/12/using-json-with-stringtemplate/#comment-7076</guid>
		<description>Hi Jeyarm, I added a link to the source zip to the main page. &lt;a href=&quot;http://hardlikesoftware.com/weblog/json-for-st/&quot; rel=&quot;nofollow&quot;&gt;JSON for ST&lt;/a&gt;

Enjoy</description>
		<content:encoded><![CDATA[<p>Hi Jeyarm, I added a link to the source zip to the main page. <a href="http://hardlikesoftware.com/weblog/json-for-st/" rel="nofollow">JSON for ST</a></p>
<p>Enjoy</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Jeyaram</title>
		<link>http://hardlikesoftware.com/weblog/2006/12/12/using-json-with-stringtemplate/comment-page-1/#comment-7017</link>
		<dc:creator>Jeyaram</dc:creator>
		<pubDate>Thu, 05 Jun 2008 09:22:02 +0000</pubDate>
		<guid isPermaLink="false">http://hardlikesoftware.com/weblog/2006/12/12/using-json-with-stringtemplate/#comment-7017</guid>
		<description>Dear John,

I just came across your blog when looking for using JSON with StringTemplate.

Would it be possible for you to share your changes to org.json with me?

Thank you

Regards
Jeyaram</description>
		<content:encoded><![CDATA[<p>Dear John,</p>
<p>I just came across your blog when looking for using JSON with StringTemplate.</p>
<p>Would it be possible for you to share your changes to org.json with me?</p>
<p>Thank you</p>
<p>Regards<br />
Jeyaram</p>
]]></content:encoded>
	</item>
</channel>
</rss>
