<?xml version="1.0" encoding="utf-8"?>
<rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom"> 
<channel>
<title>CodeStore.net comments on "Putting Domino's JSON to Use"</title>
<description>Replies to blog "Putting Domino's JSON to Use" on codestore.net.</description>
<link>http://www.codestore.net/</link>
<lastBuildDate>Sun, 28 Sep 2008 02:07:38 -0500</lastBuildDate>
<atom:link href="http://www.codestore.net/store.nsf/blog.xml?Open=20070125" rel="self" type="application/rss+xml" />

<item>
	<title>Reply from Sherwin Delfin</title>
	<pubDate>Sun, 28 Sep 2008 02:07:38 -0500</pubDate>
	<author>Sherwin Delfin</author>
	<description><![CDATA[ 
		<p>The output format in release 8.0.2 is still the same, with @. Compared to the JSON of 7, the JSON of 8 now starts with @timestamp, next is @toplevelentries. In 7, it starts with @toplevelentries.</p>

		<p><a href="http://www.codestore.net/store.nsf/reply?OpenForm&ParentUNID=27F75D6D3D5B8EC5862574D200272695"><img border="0" src="http://www.codestore.net/store.nsf/images/rss_reply.gif" alt="Click here to post a response" /></a></p>
	]]></description>
	<link>http://www.codestore.net/store.nsf/unid/BLOG-20070125?OpenDocument#DOC_27F75D6D</link>
</item><item>
	<title>Reply from Jake Howlett</title>
	<pubDate>Sun, 2 Sep 2007 06:02:00 +0100</pubDate>
	<author>Jake Howlett</author>
	<description><![CDATA[ 
		<p>Boyzl. Try:</p>
		<p>Print "Content-Type:text/plain; charset:windows-1250"</p>
		<p>Note the semicolon and the unquoted charset name!</p>

		<p><a href="http://www.codestore.net/store.nsf/reply?OpenForm&ParentUNID=681D3A6B76EE6DFE8525727D003CAC17"><img border="0" src="http://www.codestore.net/store.nsf/images/rss_reply.gif" alt="Click here to post a response" /></a></p>
	]]></description>
	<link>http://www.codestore.net/store.nsf/unid/BLOG-20070125?OpenDocument#DOC_681D3A6B</link>
</item><item>
	<title>Reply from Boyzl</title>
	<pubDate>Sun, 2 Sep 2007 05:52:00 +0100</pubDate>
	<author>Boyzl</author>
	<description><![CDATA[ 
		<p>Hi everyone,</p>
		<p>I use JSON responses on Domino 6 but have a problem. Anyone has an idea how to properly include 'charset' or 'codepage' setting in header? Something like Print "Content-Type:text/plain charset:'windows-1250'"?</p>
		<p>I need it cause I want to return text with national characters by means of JSON object.</p>
		<p>Thanks,</p>
		<p>regards from Slovenia,</p>
		<p>Bojan</p>

		<p><a href="http://www.codestore.net/store.nsf/reply?OpenForm&ParentUNID=C769201A891091E28525727D003BBADE"><img border="0" src="http://www.codestore.net/store.nsf/images/rss_reply.gif" alt="Click here to post a response" /></a></p>
	]]></description>
	<link>http://www.codestore.net/store.nsf/unid/BLOG-20070125?OpenDocument#DOC_C769201A</link>
</item><item>
	<title>Reply from Mark C</title>
	<pubDate>Tue, 30 Jan 2007 09:49:00 +0100</pubDate>
	<author>Mark C</author>
	<description><![CDATA[ 
		<p>To Mark V.  I may have misunderstood the Leveraging AJAX Frameworks to Build IBM Lotus Domino Web Applications presentation, but I was pretty sure the speaker mentioned that they were going to remove the @ from the "@position": '1', "@unid": '211F916D90F4425E8625726F0058B298', ... type elements.  </p>
		<p>I will follow up with the speakers</p>

		<p><a href="http://www.codestore.net/store.nsf/reply?OpenForm&ParentUNID=384DC1FB023BE7A6862572730056E6E0"><img border="0" src="http://www.codestore.net/store.nsf/images/rss_reply.gif" alt="Click here to post a response" /></a></p>
	]]></description>
	<link>http://www.codestore.net/store.nsf/unid/BLOG-20070125?OpenDocument#DOC_384DC1FB</link>
</item><item>
	<title>Reply from Mark Vincenzes</title>
	<pubDate>Tue, 30 Jan 2007 08:30:00 +0100</pubDate>
	<author>Mark Vincenzes</author>
	<description><![CDATA[ 
		<p>@Mark C - there are no plans to remove the @ for version 8.</p>
		<p>One of my previous posts described the changes in 8.</p>
		<p>FYI, I am a member of the IBM Domino Web Server development team.</p>

		<p><a href="http://www.codestore.net/store.nsf/reply?OpenForm&ParentUNID=3B9EE3E1BF96ED3986257273004FB5DA"><img border="0" src="http://www.codestore.net/store.nsf/images/rss_reply.gif" alt="Click here to post a response" /></a></p>
	]]></description>
	<link>http://www.codestore.net/store.nsf/unid/BLOG-20070125?OpenDocument#DOC_3B9EE3E1</link>
</item><item>
	<title>Reply from Jake Howlett</title>
	<pubDate>Mon, 29 Jan 2007 15:54:00 +0100</pubDate>
	<author>Jake Howlett</author>
	<description><![CDATA[ 
		<p>Mark.  I see now. My code didn't need the eval() call as all the JSON code was in-line and so already treated as a JavaScript object. Didn't think to mention the eval(), which is needed when the JSON is fetched from Domino as plain text.</p>

		<p><a href="http://www.codestore.net/store.nsf/reply?OpenForm&ParentUNID=BB709114EFA9E07A8625727200785FA1"><img border="0" src="http://www.codestore.net/store.nsf/images/rss_reply.gif" alt="Click here to post a response" /></a></p>
	]]></description>
	<link>http://www.codestore.net/store.nsf/unid/BLOG-20070125?OpenDocument#DOC_BB709114</link>
</item><item>
	<title>Reply from Mark C</title>
	<pubDate>Mon, 29 Jan 2007 12:25:00 +0100</pubDate>
	<author>Mark C</author>
	<description><![CDATA[ 
		<p>BTW, in case your source didn't tell you, they are changing the json outputformat in 8.  They are removing the @ from the front of the name since JS doesn't allow @ to be the first character.  </p>
		<p>So whatever works now may need to be revisited when Domino 8 is installed.</p>

		<p><a href="http://www.codestore.net/store.nsf/reply?OpenForm&ParentUNID=388D83C69FA0324B8625727200653DF3"><img border="0" src="http://www.codestore.net/store.nsf/images/rss_reply.gif" alt="Click here to post a response" /></a></p>
	]]></description>
	<link>http://www.codestore.net/store.nsf/unid/BLOG-20070125?OpenDocument#DOC_388D83C6</link>
</item><item>
	<title>Reply from Mark C</title>
	<pubDate>Mon, 29 Jan 2007 12:22:00 +0100</pubDate>
	<author>Mark C</author>
	<description><![CDATA[ 
		<p>Yes, it was. I'm not sure who or what was inserting the newline char.  I'm a little weak at advanced JS.  Here is how I got it to work: </p>
		<p>var pos = "";</p>
		<p>var myjson = xmlHTTP.responseText ; </p>
		<p>otherjson = eval("(" + myjson+ ")");</p>
		<p>view["data"]=otherjson ; </p>
		<p>var documents= view["data"].viewentry ; </p>
		<p>for (var i=0; i&lt;documents.length; i++)</p>
		<p>{</p>
		<p>alert('in loop: ' ) 	</p>
		<p>pos += documents[i].entrydata[1].text[0] ; </p>
		<p>}</p>
		<p>$("viewtable").innerHTML = 	pos ;  </p>
		<p>So, per wikipedia, I ran an eval on what was returned back to me.  I then modifed your example to point view["data"] to the eval return, rather than what was returned from Domino.  I'm developing in 7.0.2 and FF 1.5.0.9</p>
		<p>Any ideas?</p>

		<p><a href="http://www.codestore.net/store.nsf/reply?OpenForm&ParentUNID=D888851C88EB83DA862572720064F6D2"><img border="0" src="http://www.codestore.net/store.nsf/images/rss_reply.gif" alt="Click here to post a response" /></a></p>
	]]></description>
	<link>http://www.codestore.net/store.nsf/unid/BLOG-20070125?OpenDocument#DOC_D888851C</link>
</item><item>
	<title>Reply from Jake Howlett</title>
	<pubDate>Mon, 29 Jan 2007 11:53:00 +0100</pubDate>
	<author>Jake Howlett</author>
	<description><![CDATA[ 
		<p>Mark. \n is a newline in JavaScript. Is it causing your problems?</p>

		<p><a href="http://www.codestore.net/store.nsf/reply?OpenForm&ParentUNID=A4CE5C80FE855B4F86257272006251C4"><img border="0" src="http://www.codestore.net/store.nsf/images/rss_reply.gif" alt="Click here to post a response" /></a></p>
	]]></description>
	<link>http://www.codestore.net/store.nsf/unid/BLOG-20070125?OpenDocument#DOC_A4CE5C80</link>
</item><item>
	<title>Reply from Mark C</title>
	<pubDate>Mon, 29 Jan 2007 11:52:00 +0100</pubDate>
	<author>Mark C</author>
	<description><![CDATA[ 
		<p>Has anyone put this to use?  I'm trying to stuff the json (from an ajax call) and am not having much success.  Looking through one of the debugging tools, I see \n in front of the json code: </p>
		<p>"{\n"@toplevelentries": 11,\n"@rangeentries": 2,\nviewentry: [\n{\n"@position": '9',\n"@unid": 'CF57E86AE56..."</p>
		<p>Any ideas</p>

		<p><a href="http://www.codestore.net/store.nsf/reply?OpenForm&ParentUNID=A6139C79AB17D6C28625727200622D8E"><img border="0" src="http://www.codestore.net/store.nsf/images/rss_reply.gif" alt="Click here to post a response" /></a></p>
	]]></description>
	<link>http://www.codestore.net/store.nsf/unid/BLOG-20070125?OpenDocument#DOC_A6139C79</link>
</item><item>
	<title>Reply from Fabio</title>
	<pubDate>Fri, 26 Jan 2007 10:50:00 +0100</pubDate>
	<author>Fabio</author>
	<description><![CDATA[ 
		<p>You are the best !!!</p>
		<p>grande Jake . :-)</p>

		<p><a href="http://www.codestore.net/store.nsf/reply?OpenForm&ParentUNID=A4D0EA04B730C61F8625726F005C87F8"><img border="0" src="http://www.codestore.net/store.nsf/images/rss_reply.gif" alt="Click here to post a response" /></a></p>
	]]></description>
	<link>http://www.codestore.net/store.nsf/unid/BLOG-20070125?OpenDocument#DOC_A4D0EA04</link>
</item><item>
	<title>Reply from Axel Janssen</title>
	<pubDate>Thu, 25 Jan 2007 15:23:00 +0100</pubDate>
	<author>Axel Janssen</author>
	<description><![CDATA[ 
		<p>I actually find the ?readViewEntries stuff interesting for integration. </p>
		<p>I have some java code (but this is possible with other languages too) which downloads and parses the ?ReadViewEntries from some forums on notes net with a sax parser and writes all the information in documents of a notes database. It actually also downloads the body of the postings which is admitedly not in the ?ReadViewEntries. </p>
		<p>At my job we are using bugzilla. From that system I also get data in xml form. I can again download and parse that data on a scheduled basis and replicate it in a notes database where I can add some extra-functionality like giving people the chance to assign a business value and estimated costs to the bug entries for prioritizing. Thats not ?readViewEntries, but the same idea.  </p>

		<p><a href="http://www.codestore.net/store.nsf/reply?OpenForm&ParentUNID=FEEFAA448A54A85D8625726E0075856A"><img border="0" src="http://www.codestore.net/store.nsf/images/rss_reply.gif" alt="Click here to post a response" /></a></p>
	]]></description>
	<link>http://www.codestore.net/store.nsf/unid/BLOG-20070125?OpenDocument#DOC_FEEFAA44</link>
</item><item>
	<title>Reply from Gerry Shappell</title>
	<pubDate>Thu, 25 Jan 2007 09:31:00 +0100</pubDate>
	<author>Gerry Shappell</author>
	<description><![CDATA[ 
		<p>Thanks for the usage examples and link!</p>

		<p><a href="http://www.codestore.net/store.nsf/reply?OpenForm&ParentUNID=16D85118E54148788625726E00554306"><img border="0" src="http://www.codestore.net/store.nsf/images/rss_reply.gif" alt="Click here to post a response" /></a></p>
	]]></description>
	<link>http://www.codestore.net/store.nsf/unid/BLOG-20070125?OpenDocument#DOC_16D85118</link>
</item><item>
	<title>Reply from Jake Howlett</title>
	<pubDate>Thu, 25 Jan 2007 09:15:00 +0100</pubDate>
	<author>Jake Howlett</author>
	<description><![CDATA[ 
		<p>Hmm. Not sure I'd use it to create a table of a view like the example. Not a practical example by any means.</p>
		<p>This JSON view stuff is exciting as it makes it much easier to work with AJAX and Domino. We can get view entries from Domino in JSON format *without* messy agents AND we can use extra URL parameters like &Startkey= to really narrow down "search" results. </p>
		<p>Lots of other uses to. Such as pagination of views. In conjunction with <a href="http://www.yui-ext.com/deploy/yui-ext/examples/grid/array-grid.html">Jack Slocum's Grid</a> it would be really nice!</p>

		<p><a href="http://www.codestore.net/store.nsf/reply?OpenForm&ParentUNID=DBFF9E974EF0A5D28625726E0053CE6E"><img border="0" src="http://www.codestore.net/store.nsf/images/rss_reply.gif" alt="Click here to post a response" /></a></p>
	]]></description>
	<link>http://www.codestore.net/store.nsf/unid/BLOG-20070125?OpenDocument#DOC_DBFF9E97</link>
</item><item>
	<title>Reply from Gerry Shappell</title>
	<pubDate>Thu, 25 Jan 2007 09:00:00 +0100</pubDate>
	<author>Gerry Shappell</author>
	<description><![CDATA[ 
		<p>Thanks for the example...would you use this method just as a way of getting a better handle on layout and presentation as compared to a regular view?  Or do you have any examples on why developers should use this?</p>
		<p>Thanks!</p>

		<p><a href="http://www.codestore.net/store.nsf/reply?OpenForm&ParentUNID=2513DCDB7B78C9FC8625726E005272AA"><img border="0" src="http://www.codestore.net/store.nsf/images/rss_reply.gif" alt="Click here to post a response" /></a></p>
	]]></description>
	<link>http://www.codestore.net/store.nsf/unid/BLOG-20070125?OpenDocument#DOC_2513DCDB</link>
</item>

</channel>
</rss> 
