<?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/"
	xmlns:series="http://organizeseries.com/"
		>
<channel>
	<title>Comments on: JSON Referencing in Dojo</title>
	<atom:link href="http://www.sitepen.com/blog/2008/06/17/json-referencing-in-dojo/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.sitepen.com/blog/2008/06/17/json-referencing-in-dojo/</link>
	<description>SitePen Services and notes about Dojo, Persevere, CometD, JavaScript, and the Web</description>
	<lastBuildDate>Thu, 23 May 2013 01:35:00 +0000</lastBuildDate>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.5</generator>
	<item>
		<title>By: miguel peguero</title>
		<link>http://www.sitepen.com/blog/2008/06/17/json-referencing-in-dojo/comment-page-1/#comment-516399</link>
		<dc:creator>miguel peguero</dc:creator>
		<pubDate>Thu, 30 Aug 2012 15:01:33 +0000</pubDate>
		<guid isPermaLink="false">http://www.sitepen.com/blog/2008/06/17/json-referencing-in-dojo/#comment-516399</guid>
		<description><![CDATA[Could any body explain a example that work. I trying to implement this but I never can access the data this way.

var me = {
    name:&quot;Kris&quot;,
    father:{name:&quot;Bill&quot;},
    mother:{name:&quot;Karen&quot;}};
me.father.wife = me.mother;
var jsonMe = dojox.json.ref.toJson(me); // serialize me
var newMe = dojox.json.ref.fromJson(jsonMe); // de-serialize me
newMe.father.wife == newMe.mother // -&gt; true, the reproduced object will
            // properly reproduc

THIS DOES NOT WORK
missing ] after element list]]></description>
		<content:encoded><![CDATA[<p>Could any body explain a example that work. I trying to implement this but I never can access the data this way.</p>
<p>var me = {<br />
    name:&#8221;Kris&#8221;,<br />
    father:{name:&#8221;Bill&#8221;},<br />
    mother:{name:&#8221;Karen&#8221;}};<br />
me.father.wife = me.mother;<br />
var jsonMe = dojox.json.ref.toJson(me); // serialize me<br />
var newMe = dojox.json.ref.fromJson(jsonMe); // de-serialize me<br />
newMe.father.wife == newMe.mother // -&gt; true, the reproduced object will<br />
            // properly reproduc</p>
<p>THIS DOES NOT WORK<br />
missing ] after element list</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Ryan Shripat</title>
		<link>http://www.sitepen.com/blog/2008/06/17/json-referencing-in-dojo/comment-page-1/#comment-399726</link>
		<dc:creator>Ryan Shripat</dc:creator>
		<pubDate>Fri, 13 Jan 2012 12:39:52 +0000</pubDate>
		<guid isPermaLink="false">http://www.sitepen.com/blog/2008/06/17/json-referencing-in-dojo/#comment-399726</guid>
		<description><![CDATA[This is a lifesaver. I ran into problems moving .NET Entity Framework objects across the wire and coupling the dojox.json.ref library with JSON.NET solved them. Thanks a lot!!

More info: http://stackoverflow.com/questions/8824521/is-there-any-library-that-converts-c-sharp-objects-with-references-into-dojox-js]]></description>
		<content:encoded><![CDATA[<p>This is a lifesaver. I ran into problems moving .NET Entity Framework objects across the wire and coupling the dojox.json.ref library with JSON.NET solved them. Thanks a lot!!</p>
<p>More info: <a href="http://stackoverflow.com/questions/8824521/is-there-any-library-that-converts-c-sharp-objects-with-references-into-dojox-js" rel="nofollow">http://stackoverflow.com/questions/8824521/is-there-any-library-that-converts-c-sharp-objects-with-references-into-dojox-js</a></p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Federico Bellucci</title>
		<link>http://www.sitepen.com/blog/2008/06/17/json-referencing-in-dojo/comment-page-1/#comment-92250</link>
		<dc:creator>Federico Bellucci</dc:creator>
		<pubDate>Sun, 28 Mar 2010 09:58:40 +0000</pubDate>
		<guid isPermaLink="false">http://www.sitepen.com/blog/2008/06/17/json-referencing-in-dojo/#comment-92250</guid>
		<description><![CDATA[I tried to stringify Date objects with dojox.json.ref library. 
The result is a String representing an ISO formatted date. 
But when I deserialize the JSON string, it is not converted back to a Date object but it remains a String. 

e.g.:
&lt;code&gt;
var dateA = new Date(); // Date
var jsonDate = dojox.json.ref.toJson(dateA); // String
var dateB = dojox.json.ref.fromJson(jsonDate); //String
&lt;/code&gt;

I know I could convert this String to a Date using the function &lt;code&gt;dojo.date.stamp.fromISOString()&lt;/code&gt; but I have an arbitrary list of JSON message of which I don&#039;t know the original type. 

I noticed in dojox.json.ref.js code that the function fromJson could accept an optional argument &#039;args&#039; that is actually used in the walk function to reconvert a date String to a Date object. But I couldn&#039;t find any documentation about the usage of &#039;args&#039; parameter. 

I&#039;m asking you a way for using properly your library to convert Dates to JSON messages and back again to Date objects or a way for knowing if a String is an ISO formatted date. 

Thank you in advance]]></description>
		<content:encoded><![CDATA[<p>I tried to stringify Date objects with dojox.json.ref library.<br />
The result is a String representing an ISO formatted date.<br />
But when I deserialize the JSON string, it is not converted back to a Date object but it remains a String. </p>
<p>e.g.:<br />
<code><br />
var dateA = new Date(); // Date<br />
var jsonDate = dojox.json.ref.toJson(dateA); // String<br />
var dateB = dojox.json.ref.fromJson(jsonDate); //String<br />
</code></p>
<p>I know I could convert this String to a Date using the function <code>dojo.date.stamp.fromISOString()</code> but I have an arbitrary list of JSON message of which I don&#8217;t know the original type. </p>
<p>I noticed in dojox.json.ref.js code that the function fromJson could accept an optional argument &#8216;args&#8217; that is actually used in the walk function to reconvert a date String to a Date object. But I couldn&#8217;t find any documentation about the usage of &#8216;args&#8217; parameter. </p>
<p>I&#8217;m asking you a way for using properly your library to convert Dates to JSON messages and back again to Date objects or a way for knowing if a String is an ISO formatted date. </p>
<p>Thank you in advance</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: SitePen Blog &#187; JSON Namespacing</title>
		<link>http://www.sitepen.com/blog/2008/06/17/json-referencing-in-dojo/comment-page-1/#comment-91185</link>
		<dc:creator>SitePen Blog &#187; JSON Namespacing</dc:creator>
		<pubDate>Wed, 02 Sep 2009 19:24:03 +0000</pubDate>
		<guid isPermaLink="false">http://www.sitepen.com/blog/2008/06/17/json-referencing-in-dojo/#comment-91185</guid>
		<description><![CDATA[[...] or references within data structures. This is intended to provide the same linking capabilities of JSON Referencing, but in a much more flexible manner such that schemas can be used to describe link information in [...]]]></description>
		<content:encoded><![CDATA[<p>[...] or references within data structures. This is intended to provide the same linking capabilities of JSON Referencing, but in a much more flexible manner such that schemas can be used to describe link information in [...]</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: SitePen Blog &#187; New in JsonRestStore 1.3: Dates, Deleting, Conflict Handling, and more</title>
		<link>http://www.sitepen.com/blog/2008/06/17/json-referencing-in-dojo/comment-page-1/#comment-90525</link>
		<dc:creator>SitePen Blog &#187; New in JsonRestStore 1.3: Dates, Deleting, Conflict Handling, and more</dc:creator>
		<pubDate>Tue, 27 Jan 2009 20:10:17 +0000</pubDate>
		<guid isPermaLink="false">http://www.sitepen.com/blog/2008/06/17/json-referencing-in-dojo/#comment-90525</guid>
		<description><![CDATA[[...] latest version of the JSON referencing module used by JsonRestStore now also includes date parsing capabilities. This makes it possible to [...]]]></description>
		<content:encoded><![CDATA[<p>[...] latest version of the JSON referencing module used by JsonRestStore now also includes date parsing capabilities. This makes it possible to [...]</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Kris Zyp</title>
		<link>http://www.sitepen.com/blog/2008/06/17/json-referencing-in-dojo/comment-page-1/#comment-90387</link>
		<dc:creator>Kris Zyp</dc:creator>
		<pubDate>Wed, 10 Dec 2008 14:00:35 +0000</pubDate>
		<guid isPermaLink="false">http://www.sitepen.com/blog/2008/06/17/json-referencing-in-dojo/#comment-90387</guid>
		<description><![CDATA[@Johan:
Yes, you can easily create cyclic data structures with JavaScript (in a x-browser way as well) but that does nothing to help with creating references between different messages.]]></description>
		<content:encoded><![CDATA[<p>@Johan:<br />
Yes, you can easily create cyclic data structures with JavaScript (in a x-browser way as well) but that does nothing to help with creating references between different messages.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Johan Sundström</title>
		<link>http://www.sitepen.com/blog/2008/06/17/json-referencing-in-dojo/comment-page-1/#comment-90379</link>
		<dc:creator>Johan Sundström</dc:creator>
		<pubDate>Wed, 10 Dec 2008 00:16:52 +0000</pubDate>
		<guid isPermaLink="false">http://www.sitepen.com/blog/2008/06/17/json-referencing-in-dojo/#comment-90379</guid>
		<description><![CDATA[These can actually be mimicked natively at the object literal level in the Mozilla javascript implementation for cyclic data structures like this:

&lt;code&gt;var woo={&quot;hi&quot;:#1=[&quot;Hello&quot;, &quot;world!&quot;], &quot;hoo&quot;:#1#};
woo.hoo;
[&quot;Hello&quot;, &quot;world!&quot;]&lt;/code&gt;

though it of course breaks JSON conformance (and isn&#039;t understood by JSON.parse even in Mozilla), and doesn&#039;t work in, for instance, the Safari javascript engine.]]></description>
		<content:encoded><![CDATA[<p>These can actually be mimicked natively at the object literal level in the Mozilla javascript implementation for cyclic data structures like this:</p>
<p><code>var woo={"hi":#1=["Hello", "world!"], "hoo":#1#};<br />
woo.hoo;<br />
["Hello", "world!"]</code></p>
<p>though it of course breaks JSON conformance (and isn&#8217;t understood by JSON.parse even in Mozilla), and doesn&#8217;t work in, for instance, the Safari javascript engine.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: SpringOne 2008 Day 4 &#171; Incremental Operations</title>
		<link>http://www.sitepen.com/blog/2008/06/17/json-referencing-in-dojo/comment-page-1/#comment-90354</link>
		<dc:creator>SpringOne 2008 Day 4 &#171; Incremental Operations</dc:creator>
		<pubDate>Fri, 05 Dec 2008 02:58:05 +0000</pubDate>
		<guid isPermaLink="false">http://www.sitepen.com/blog/2008/06/17/json-referencing-in-dojo/#comment-90354</guid>
		<description><![CDATA[[...] JSON Referencing - avoids cyclic references by using only id values with a special key to represent referenced objects - and dojo can lazy load the whole object from the server, the JavaScript equivalent of Hibernate proxies. [...]]]></description>
		<content:encoded><![CDATA[<p>[...] JSON Referencing &#8211; avoids cyclic references by using only id values with a special key to represent referenced objects &#8211; and dojo can lazy load the whole object from the server, the JavaScript equivalent of Hibernate proxies. [...]</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: SitePen Blog &#187; When to Use Persevere: a Comparison with CouchDB and Others</title>
		<link>http://www.sitepen.com/blog/2008/06/17/json-referencing-in-dojo/comment-page-1/#comment-89598</link>
		<dc:creator>SitePen Blog &#187; When to Use Persevere: a Comparison with CouchDB and Others</dc:creator>
		<pubDate>Tue, 18 Nov 2008 17:25:58 +0000</pubDate>
		<guid isPermaLink="false">http://www.sitepen.com/blog/2008/06/17/json-referencing-in-dojo/#comment-89598</guid>
		<description><![CDATA[[...] also supports additional extensions of JSON for more complex data structures. Persevere utilizes JSON referencing to describe data structures with circular references, multiple references to single objects, [...]]]></description>
		<content:encoded><![CDATA[<p>[...] also supports additional extensions of JSON for more complex data structures. Persevere utilizes JSON referencing to describe data structures with circular references, multiple references to single objects, [...]</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: SitePen Blog &#187; Using the Persistent Object Model in Persevere</title>
		<link>http://www.sitepen.com/blog/2008/06/17/json-referencing-in-dojo/comment-page-1/#comment-89005</link>
		<dc:creator>SitePen Blog &#187; Using the Persistent Object Model in Persevere</dc:creator>
		<pubDate>Mon, 03 Nov 2008 04:09:44 +0000</pubDate>
		<guid isPermaLink="false">http://www.sitepen.com/blog/2008/06/17/json-referencing-in-dojo/#comment-89005</guid>
		<description><![CDATA[[...] identity in JavaScript, but is this possible remotely? Absolutely, this can easily be done with JSON Referencing. To create the same effect as the example above, adding the second task from Project/2 to [...]]]></description>
		<content:encoded><![CDATA[<p>[...] identity in JavaScript, but is this possible remotely? Absolutely, this can easily be done with JSON Referencing. To create the same effect as the example above, adding the second task from Project/2 to [...]</p>
]]></content:encoded>
	</item>
</channel>
</rss>
