<?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: Java script: access properties of a complex JSON object</title>
	<atom:link href="http://lostechies.com/gabrielschenker/2009/03/10/javascript-access-properties-of-a-complex-json-object/feed/" rel="self" type="application/rss+xml" />
	<link>http://lostechies.com/gabrielschenker/2009/03/10/javascript-access-properties-of-a-complex-json-object/</link>
	<description>Blog about architectural patterns, best practices, coding principles and techniques</description>
	<lastBuildDate>Wed, 22 May 2013 12:15:00 +0000</lastBuildDate>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.4.2</generator>
	<item>
		<title>By: Felix Grund</title>
		<link>http://lostechies.com/gabrielschenker/2009/03/10/javascript-access-properties-of-a-complex-json-object/#comment-415</link>
		<dc:creator>Felix Grund</dc:creator>
		<pubDate>Thu, 08 Dec 2011 10:18:00 +0000</pubDate>
		<guid isPermaLink="false">/blogs/gabrielschenker/archive/2009/03/10/javascript-access-properties-of-a-complex-json-object.aspx#comment-415</guid>
		<description>Hey Gabriel,

I was just searching for a solution for this problem. Yours works fine, but only if I put a backslash before w+ in the regular expression:
var token = /w+/g;Did you forget that our is it something I just can&#039;t see at the moment?Cheer,Felix</description>
		<content:encoded><![CDATA[<p>Hey Gabriel,</p>
<p>I was just searching for a solution for this problem. Yours works fine, but only if I put a backslash before w+ in the regular expression:<br />
var token = /w+/g;Did you forget that our is it something I just can&#8217;t see at the moment?Cheer,Felix</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: tommaso</title>
		<link>http://lostechies.com/gabrielschenker/2009/03/10/javascript-access-properties-of-a-complex-json-object/#comment-130</link>
		<dc:creator>tommaso</dc:creator>
		<pubDate>Wed, 17 Jun 2009 13:48:28 +0000</pubDate>
		<guid isPermaLink="false">/blogs/gabrielschenker/archive/2009/03/10/javascript-access-properties-of-a-complex-json-object.aspx#comment-130</guid>
		<description>hi guys, I really need your help.

here is the problem: I have a software project in the repository but I don&#039;t want that some people access to one or more folders/files. If I set the security on those file everithing is ok. the problem is that, when I create a Branch I have to set again the security rule to access those critical folders/files. how can I do to ensure that access rules are inherited in the branch?

please help me!!

thank you very much!!

Tommaso </description>
		<content:encoded><![CDATA[<p>hi guys, I really need your help.</p>
<p>here is the problem: I have a software project in the repository but I don&#8217;t want that some people access to one or more folders/files. If I set the security on those file everithing is ok. the problem is that, when I create a Branch I have to set again the security rule to access those critical folders/files. how can I do to ensure that access rules are inherited in the branch?</p>
<p>please help me!!</p>
<p>thank you very much!!</p>
<p>Tommaso </p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Terry Walker</title>
		<link>http://lostechies.com/gabrielschenker/2009/03/10/javascript-access-properties-of-a-complex-json-object/#comment-129</link>
		<dc:creator>Terry Walker</dc:creator>
		<pubDate>Wed, 25 Mar 2009 09:41:28 +0000</pubDate>
		<guid isPermaLink="false">/blogs/gabrielschenker/archive/2009/03/10/javascript-access-properties-of-a-complex-json-object.aspx#comment-129</guid>
		<description>Wow, I never knew thataccess properties of a complex JSON object. That’s pretty interesting...</description>
		<content:encoded><![CDATA[<p>Wow, I never knew thataccess properties of a complex JSON object. That’s pretty interesting&#8230;</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Michael Hart</title>
		<link>http://lostechies.com/gabrielschenker/2009/03/10/javascript-access-properties-of-a-complex-json-object/#comment-128</link>
		<dc:creator>Michael Hart</dc:creator>
		<pubDate>Tue, 10 Mar 2009 23:07:39 +0000</pubDate>
		<guid isPermaLink="false">/blogs/gabrielschenker/archive/2009/03/10/javascript-access-properties-of-a-complex-json-object.aspx#comment-128</guid>
		<description>Hmmm, interesting - maybe that&#039;s why yours didn&#039;t work either... there&#039;s a hidden &quot;i&quot; in square brackets in there...

Will try again:

temp = temp[ results[ i ] ];</description>
		<content:encoded><![CDATA[<p>Hmmm, interesting &#8211; maybe that&#8217;s why yours didn&#8217;t work either&#8230; there&#8217;s a hidden &#8220;i&#8221; in square brackets in there&#8230;</p>
<p>Will try again:</p>
<p>temp = temp[ results[ i ] ];</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Michael Hart</title>
		<link>http://lostechies.com/gabrielschenker/2009/03/10/javascript-access-properties-of-a-complex-json-object/#comment-127</link>
		<dc:creator>Michael Hart</dc:creator>
		<pubDate>Tue, 10 Mar 2009 22:43:42 +0000</pubDate>
		<guid isPermaLink="false">/blogs/gabrielschenker/archive/2009/03/10/javascript-access-properties-of-a-complex-json-object.aspx#comment-127</guid>
		<description>Ah righto - sorry, my bad, I didn&#039;t quite get that from the example.

Can you give more context about where this expression is coming from? ie, why is it already in the format &quot;Name.FirstName&quot;? If it&#039;s for an XPath type situation, then I think JSONPath already covers this (http://goessner.net/articles/JsonPath/).

Also, I think there&#039;s possibly a typo in the loop - I think it should be:

temp = temp[results[i]];</description>
		<content:encoded><![CDATA[<p>Ah righto &#8211; sorry, my bad, I didn&#8217;t quite get that from the example.</p>
<p>Can you give more context about where this expression is coming from? ie, why is it already in the format &#8220;Name.FirstName&#8221;? If it&#8217;s for an XPath type situation, then I think JSONPath already covers this (<a href="http://goessner.net/articles/JsonPath/" rel="nofollow">http://goessner.net/articles/JsonPath/</a>).</p>
<p>Also, I think there&#8217;s possibly a typo in the loop &#8211; I think it should be:</p>
<p>temp = temp[results[i]];</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Gabriel N. Schenker</title>
		<link>http://lostechies.com/gabrielschenker/2009/03/10/javascript-access-properties-of-a-complex-json-object/#comment-126</link>
		<dc:creator>Gabriel N. Schenker</dc:creator>
		<pubDate>Tue, 10 Mar 2009 21:42:05 +0000</pubDate>
		<guid isPermaLink="false">/blogs/gabrielschenker/archive/2009/03/10/javascript-access-properties-of-a-complex-json-object.aspx#comment-126</guid>
		<description>@all: it is indeed important to note that I needed to dynamically resolve properties. So no direct access...</description>
		<content:encoded><![CDATA[<p>@all: it is indeed important to note that I needed to dynamically resolve properties. So no direct access&#8230;</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Colin Ramsay</title>
		<link>http://lostechies.com/gabrielschenker/2009/03/10/javascript-access-properties-of-a-complex-json-object/#comment-125</link>
		<dc:creator>Colin Ramsay</dc:creator>
		<pubDate>Tue, 10 Mar 2009 14:42:16 +0000</pubDate>
		<guid isPermaLink="false">/blogs/gabrielschenker/archive/2009/03/10/javascript-access-properties-of-a-complex-json-object.aspx#comment-125</guid>
		<description>I see, sorry Gabriel, I misunderstood your requirements.</description>
		<content:encoded><![CDATA[<p>I see, sorry Gabriel, I misunderstood your requirements.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Sergio Pereira</title>
		<link>http://lostechies.com/gabrielschenker/2009/03/10/javascript-access-properties-of-a-complex-json-object/#comment-124</link>
		<dc:creator>Sergio Pereira</dc:creator>
		<pubDate>Tue, 10 Mar 2009 14:00:49 +0000</pubDate>
		<guid isPermaLink="false">/blogs/gabrielschenker/archive/2009/03/10/javascript-access-properties-of-a-complex-json-object.aspx#comment-124</guid>
		<description>@Michael, Gabriel&#039;s post mentions that he needs to do this dynamically, so the dot notation like that doesn&#039;t help.
@Keeto gave the suggestion I was about to give - square brackets notation.
@Jeremy, eval isn&#039;t something that you&#039;s want to use all the time, especially if you don&#039;t control the source of those strings. There&#039;s generally a good way to avoid uses of eval with cleaner JavaScript.</description>
		<content:encoded><![CDATA[<p>@Michael, Gabriel&#8217;s post mentions that he needs to do this dynamically, so the dot notation like that doesn&#8217;t help.<br />
@Keeto gave the suggestion I was about to give &#8211; square brackets notation.<br />
@Jeremy, eval isn&#8217;t something that you&#8217;s want to use all the time, especially if you don&#8217;t control the source of those strings. There&#8217;s generally a good way to avoid uses of eval with cleaner JavaScript.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Jeremy Wiebe</title>
		<link>http://lostechies.com/gabrielschenker/2009/03/10/javascript-access-properties-of-a-complex-json-object/#comment-123</link>
		<dc:creator>Jeremy Wiebe</dc:creator>
		<pubDate>Tue, 10 Mar 2009 11:27:23 +0000</pubDate>
		<guid isPermaLink="false">/blogs/gabrielschenker/archive/2009/03/10/javascript-access-properties-of-a-complex-json-object.aspx#comment-123</guid>
		<description>Wouldn&#039;t it be as simple as doing this:

var result = eval(&quot;item.Name.FirstName&quot;);

You may not want to do this for security purposes in some cases though.</description>
		<content:encoded><![CDATA[<p>Wouldn&#8217;t it be as simple as doing this:</p>
<p>var result = eval(&#8220;item.Name.FirstName&#8221;);</p>
<p>You may not want to do this for security purposes in some cases though.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Colin Ramsay</title>
		<link>http://lostechies.com/gabrielschenker/2009/03/10/javascript-access-properties-of-a-complex-json-object/#comment-122</link>
		<dc:creator>Colin Ramsay</dc:creator>
		<pubDate>Tue, 10 Mar 2009 09:51:14 +0000</pubDate>
		<guid isPermaLink="false">/blogs/gabrielschenker/archive/2009/03/10/javascript-access-properties-of-a-complex-json-object.aspx#comment-122</guid>
		<description>Gabriel, try putting this into the Firebug console:

var item = {
  Id: 1,
  Name: { FirstName: &quot;Gabriel&quot;, LastName: &quot;Schenker&quot; }
};

console.debug(item.Name.LastName);

It will output &quot;Schenker&quot;. Additionally, it is not &quot;Java script&quot; but &quot;JavaScript&quot;, which is an important difference to pedants like me ;)</description>
		<content:encoded><![CDATA[<p>Gabriel, try putting this into the Firebug console:</p>
<p>var item = {<br />
  Id: 1,<br />
  Name: { FirstName: &#8220;Gabriel&#8221;, LastName: &#8220;Schenker&#8221; }<br />
};</p>
<p>console.debug(item.Name.LastName);</p>
<p>It will output &#8220;Schenker&#8221;. Additionally, it is not &#8220;Java script&#8221; but &#8220;JavaScript&#8221;, which is an important difference to pedants like me <img src='http://lostechies.com/gabrielschenker/wp-includes/images/smilies/icon_wink.gif' alt=';)' class='wp-smiley' /> </p>
]]></content:encoded>
	</item>
</channel>
</rss>
