<?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"
	>
<channel>
	<title>Comments on: ASP JSON utility version 1.5 released</title>
	<atom:link href="http://www.webdevbros.net/2008/07/10/asp-json-utility-version-15-released/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.webdevbros.net/2008/07/10/asp-json-utility-version-15-released/</link>
	<description>hot talk about web scripting</description>
	<pubDate>Wed, 07 Jan 2009 09:52:48 +0000</pubDate>
	<generator>http://wordpress.org/?v=2.5</generator>
		<item>
		<title>By: qwertyass</title>
		<link>http://www.webdevbros.net/2008/07/10/asp-json-utility-version-15-released/#comment-9551</link>
		<dc:creator>qwertyass</dc:creator>
		<pubDate>Thu, 30 Oct 2008 07:26:22 +0000</pubDate>
		<guid isPermaLink="false">http://www.webdevbros.net/?p=183#comment-9551</guid>
		<description>yes, thats what i've been looking for also. how to convert the json string into something (probably object) in ASP classic. trully i have no idea if i have to do this by myself T_T</description>
		<content:encoded><![CDATA[<p>yes, thats what i&#8217;ve been looking for also. how to convert the json string into something (probably object) in ASP classic. trully i have no idea if i have to do this by myself T_T</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Michal</title>
		<link>http://www.webdevbros.net/2008/07/10/asp-json-utility-version-15-released/#comment-9482</link>
		<dc:creator>Michal</dc:creator>
		<pubDate>Wed, 17 Sep 2008 19:55:51 +0000</pubDate>
		<guid isPermaLink="false">http://www.webdevbros.net/?p=183#comment-9482</guid>
		<description>hi james... i see your problem but my JSON class does only VBSCRIPT to JSON ... and not JSON to VBSCRIPT.

check the comments in http://www.webdevbros.net/2007/04/26/generate-json-from-asp-datatypes/ .. as far as i remember there are some links for the way you need. i havent tried them yet.

hope that helps.
m</description>
		<content:encoded><![CDATA[<p>hi james&#8230; i see your problem but my JSON class does only VBSCRIPT to JSON &#8230; and not JSON to VBSCRIPT.</p>
<p>check the comments in <a href="http://www.webdevbros.net/2007/04/26/generate-json-from-asp-datatypes/" rel="nofollow">http://www.webdevbros.net/2007/04/26/generate-json-from-asp-datatypes/</a> .. as far as i remember there are some links for the way you need. i havent tried them yet.</p>
<p>hope that helps.<br />
m</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: James</title>
		<link>http://www.webdevbros.net/2008/07/10/asp-json-utility-version-15-released/#comment-9481</link>
		<dc:creator>James</dc:creator>
		<pubDate>Wed, 17 Sep 2008 19:24:42 +0000</pubDate>
		<guid isPermaLink="false">http://www.webdevbros.net/?p=183#comment-9481</guid>
		<description>Hola,
Here is a little json.encoded string which I'm sending via the get request_method and as I'm new to json, yet familiar enough with vbscript/asp - i need to take this string and create an object within an asp receipt page (there is more involved as I'm also sending a plethora of form field values - hence it must be done in this manner and would take too long to explain).
I've taken the string ltself and laid it out in a more readable format - hopefully you can guide me as to how I would go about turning this string back into an object, in order to access it with vbscript at runtime.
[html]
columns={
	"columns":[
		"column1",
		"column2"
		],
	"groups":[
		{
			"group":"group1",
			"columns":[
				"group1.1",
				"group1.2"
				]
		},
		{
			"group":"group2",
			"columns":[
				"group2.1",
				"group2.2"
				]
		}
	]
}
[/html]
basically I'm using a dynamically created sortable list. Where the user can create x number of columns and x number of grouped columns. The user can then drag columns into grouped column lists (assigned by the 'groups' indicator in the code above). The columns are all the dynamically created columns which have not been dragged into the grouped columns collection.

there is a reference link at &#62;&#62; http://www.captivelead.com/ftpCreator/form.asp (where you can fill out the fields - there isn't any error handling at the moment). To indicate the number of columns and groups, you must first enter a numeric value into "# of columns" and create grouped columns by entering a numeric value into "# of groups" then click the "render" button.

You'll then be able to drag columns into the grouped columns section - in order to create a collection of columns within any single group.

when you submit, you'll notice that a string is sent to the 'results.asp' page, with the formfield elements [using javascript getElementById(eachFormField)].

and in case you're curious to the point of this little form page, it is in order to create a table within an existing database, where the columns are the columnHeaders, and the grouped Columns are a csv of all related columns of the same type (re: notes1, notes2, notes3 etc) from a flat file such as a tab delimited file.</description>
		<content:encoded><![CDATA[<p>Hola,<br />
Here is a little json.encoded string which I'm sending via the get request_method and as I'm new to json, yet familiar enough with vbscript/asp - i need to take this string and create an object within an asp receipt page (there is more involved as I'm also sending a plethora of form field values - hence it must be done in this manner and would take too long to explain).<br />
I've taken the string ltself and laid it out in a more readable format - hopefully you can guide me as to how I would go about turning this string back into an object, in order to access it with vbscript at runtime.</p>
<div class="igBar"><span id="lhtml-1"><a href="#" onclick="javascript:showCodeTxt('html-1'); return false;">PLAIN TEXT</a></span></div>
<div class="syntax_hilite"><span class="langName">HTML:</span>
<div id="html-1">
<div class="html">
<ol>
<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;color:#767676;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">columns={</div>
</li>
<li style="font-weight: bold;color:#767676;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">&nbsp; &nbsp; &quot;columns&quot;:[</div>
</li>
<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;color:#767676;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">&nbsp; &nbsp; &nbsp; &nbsp; &quot;column1&quot;,</div>
</li>
<li style="font-weight: bold;color:#767676;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">&nbsp; &nbsp; &nbsp; &nbsp; &quot;column2&quot;</div>
</li>
<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;color:#767676;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">&nbsp; &nbsp; &nbsp; &nbsp; ],</div>
</li>
<li style="font-weight: bold;color:#767676;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">&nbsp; &nbsp; &quot;groups&quot;:[</div>
</li>
<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;color:#767676;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">&nbsp; &nbsp; &nbsp; &nbsp; {</div>
</li>
<li style="font-weight: bold;color:#767676;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &quot;group&quot;:&quot;group1&quot;,</div>
</li>
<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;color:#767676;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &quot;columns&quot;:[</div>
</li>
<li style="font-weight: bold;color:#767676;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &quot;group1.1&quot;,</div>
</li>
<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;color:#767676;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &quot;group1.2&quot;</div>
</li>
<li style="font-weight: bold;color:#767676;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; ]</div>
</li>
<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;color:#767676;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">&nbsp; &nbsp; &nbsp; &nbsp; },</div>
</li>
<li style="font-weight: bold;color:#767676;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">&nbsp; &nbsp; &nbsp; &nbsp; {</div>
</li>
<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;color:#767676;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &quot;group&quot;:&quot;group2&quot;,</div>
</li>
<li style="font-weight: bold;color:#767676;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &quot;columns&quot;:[</div>
</li>
<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;color:#767676;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &quot;group2.1&quot;,</div>
</li>
<li style="font-weight: bold;color:#767676;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &quot;group2.2&quot;</div>
</li>
<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;color:#767676;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; ]</div>
</li>
<li style="font-weight: bold;color:#767676;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">&nbsp; &nbsp; &nbsp; &nbsp; }</div>
</li>
<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;color:#767676;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">&nbsp; &nbsp; ]</div>
</li>
<li style="font-weight: bold;color:#767676;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">} </div>
</li>
</ol>
</div>
</div>
</div>
<p>
basically I'm using a dynamically created sortable list. Where the user can create x number of columns and x number of grouped columns. The user can then drag columns into grouped column lists (assigned by the 'groups' indicator in the code above). The columns are all the dynamically created columns which have not been dragged into the grouped columns collection.</p>
<p>there is a reference link at &gt;&gt; <a href="http://www.captivelead.com/ftpCreator/form.asp" rel="nofollow">http://www.captivelead.com/ftpCreator/form.asp</a> (where you can fill out the fields - there isn't any error handling at the moment). To indicate the number of columns and groups, you must first enter a numeric value into "# of columns" and create grouped columns by entering a numeric value into "# of groups" then click the "render" button.</p>
<p>You'll then be able to drag columns into the grouped columns section - in order to create a collection of columns within any single group.</p>
<p>when you submit, you'll notice that a string is sent to the 'results.asp' page, with the formfield elements [using javascript getElementById(eachFormField)].</p>
<p>and in case you're curious to the point of this little form page, it is in order to create a table within an existing database, where the columns are the columnHeaders, and the grouped Columns are a csv of all related columns of the same type (re: notes1, notes2, notes3 etc) from a flat file such as a tab delimited file.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Michal</title>
		<link>http://www.webdevbros.net/2008/07/10/asp-json-utility-version-15-released/#comment-8886</link>
		<dc:creator>Michal</dc:creator>
		<pubDate>Tue, 15 Jul 2008 02:30:23 +0000</pubDate>
		<guid isPermaLink="false">http://www.webdevbros.net/?p=183#comment-8886</guid>
		<description>Thanks a lot james .. i fixed this and uploaded v1.5.1 .. I wonder how this could have happend cause i tested it ;)</description>
		<content:encoded><![CDATA[<p>Thanks a lot james .. i fixed this and uploaded v1.5.1 .. I wonder how this could have happend cause i tested it ;)</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: James</title>
		<link>http://www.webdevbros.net/2008/07/10/asp-json-utility-version-15-released/#comment-8884</link>
		<dc:creator>James</dc:creator>
		<pubDate>Tue, 15 Jul 2008 02:04:21 +0000</pubDate>
		<guid isPermaLink="false">http://www.webdevbros.net/?p=183#comment-8884</guid>
		<description>Thanks for writing such a useful component, I encountered a bug with your big fix concerning empty dictionaries:

private sub generateDictionary(val)
	if val.count = 0 then
		toJSON empty, null, true

This causes the JSON not to be written properly, the code below corrected the problem and displayed the results desired by your bug fix. 

Need to increment the innerCall variable at the beginning of the subroutine, to prevent the previous output from being cleared.

private sub generateDictionary(val)
	innerCall = innerCall + 1
	if val.count = 0 then
		toJSON empty, null, true</description>
		<content:encoded><![CDATA[<p>Thanks for writing such a useful component, I encountered a bug with your big fix concerning empty dictionaries:</p>
<p>private sub generateDictionary(val)<br />
	if val.count = 0 then<br />
		toJSON empty, null, true</p>
<p>This causes the JSON not to be written properly, the code below corrected the problem and displayed the results desired by your bug fix. </p>
<p>Need to increment the innerCall variable at the beginning of the subroutine, to prevent the previous output from being cleared.</p>
<p>private sub generateDictionary(val)<br />
	innerCall = innerCall + 1<br />
	if val.count = 0 then<br />
		toJSON empty, null, true</p>
]]></content:encoded>
	</item>
</channel>
</rss>
