<?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: Simple JSON Encode/Decode in Pure Lua</title>
	<atom:link href="http://regex.info/blog/lua/json/feed" rel="self" type="application/rss+xml" />
	<link>http://regex.info/blog</link>
	<description>Not a photo blog. A personal blog with photos.</description>
	<lastBuildDate>Wed, 23 May 2012 20:38:13 +0000</lastBuildDate>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.3.2</generator>
	<item>
		<title>By: Kyle (Singapore)</title>
		<link>http://regex.info/blog/lua/json#comment-44875</link>
		<dc:creator>Kyle (Singapore)</dc:creator>
		<pubDate>Fri, 23 Dec 2011 03:41:10 +0000</pubDate>
		<guid isPermaLink="false">http://regex.info/blog/lua/json#comment-44875</guid>
		<description>Err... something seems to be up with the comments in the file:
Lines 14 and 123 have &lt;code&gt;--   JSON = (loadfile &quot;JSON.lua&quot;)() -- one-time load of the routines&lt;/code&gt;
While lines 24 and 111 have &lt;code&gt;--   JSON = (loadfile &quot;JSON:lua&quot;)() -- one-time load of the routines&lt;/code&gt;

That JSON&lt;b&gt;.&lt;/b&gt;lua / JSON&lt;b&gt;:&lt;/b&gt;lua is a bit inconsistent... Is that intentional? (Considering that Lightroom just gave me the error &quot;attempt to call a nil value&quot; when I tried loading JSON:lua, I doubt it...)

Also, &lt;em&gt;THANK YOU&lt;/em&gt; for publishing this. It&#039;s making my first foray into Lightroom plugin development (and Lua) so much easier! 

(While I&#039;m at it, any pointers on using relative paths in loadfile(), or, alternatively, finding out with directory is Lightroom&#039;s working directory so I can build a relative path from that? Doing loadfile(JSON.lua) falls over with &lt;code&gt;File not found&lt;/code&gt;, but putting the absolute path in works fine, but... won&#039;t work for anyone but me, which is not an optimal solution. 

And Lightroom&#039;s file access is too fast to show up in Process Explorer, so I can&#039;t get anything from there.)

&lt;span class=&#039;jfriedl&#039;&gt;Oops, thanks, I thought I fixed that once, but apparently not in my master source, so it reared its ugly head again. It should  be dot-&quot;lua&quot; in all situations, so I&#039;ve fixed it (again), thanks. As for the path stuff, try &lt;b&gt;loadfile(LrPathUtils.child(_PLUGIN.path, &quot;JSON.lua&quot;))&lt;/b&gt; or the like. &#8212;Jeffrey&lt;/span&gt;</description>
		<content:encoded><![CDATA[<p>Err&#8230; something seems to be up with the comments in the file:<br />
Lines 14 and 123 have <code>--   JSON = (loadfile "JSON.lua")() -- one-time load of the routines</code><br />
While lines 24 and 111 have <code>--   JSON = (loadfile "JSON:lua")() -- one-time load of the routines</code></p>
<p>That JSON<b>.</b>lua / JSON<b>:</b>lua is a bit inconsistent&#8230; Is that intentional? (Considering that Lightroom just gave me the error &#8220;attempt to call a nil value&#8221; when I tried loading JSON:lua, I doubt it&#8230;)</p>
<p>Also, <em>THANK YOU</em> for publishing this. It&#8217;s making my first foray into Lightroom plugin development (and Lua) so much easier! </p>
<p>(While I&#8217;m at it, any pointers on using relative paths in loadfile(), or, alternatively, finding out with directory is Lightroom&#8217;s working directory so I can build a relative path from that? Doing loadfile(JSON.lua) falls over with <code>File not found</code>, but putting the absolute path in works fine, but&#8230; won&#8217;t work for anyone but me, which is not an optimal solution. </p>
<p>And Lightroom&#8217;s file access is too fast to show up in Process Explorer, so I can&#8217;t get anything from there.)</p>
<p><span class='jfriedl'>Oops, thanks, I thought I fixed that once, but apparently not in my master source, so it reared its ugly head again. It should  be dot-&#8221;lua&#8221; in all situations, so I&#8217;ve fixed it (again), thanks. As for the path stuff, try <b>loadfile(LrPathUtils.child(_PLUGIN.path, &#8220;JSON.lua&#8221;))</b> or the like. &mdash;Jeffrey</span></p>
]]></content:encoded>
	</item>
	<item>
		<title>By: MaikB</title>
		<link>http://regex.info/blog/lua/json#comment-44362</link>
		<dc:creator>MaikB</dc:creator>
		<pubDate>Thu, 20 Oct 2011 18:08:59 +0000</pubDate>
		<guid isPermaLink="false">http://regex.info/blog/lua/json#comment-44362</guid>
		<description>I really like to use your module, but I can&#039;t unless there is a license that clearly grants me permission to use it.  For example MIT, like  lua license itself, or BSD 2-clause.

Best,
Maik

&lt;span class=&#039;jfriedl&#039;&gt;I made it and I said you can use it. That should be enough. &#8212;Jeffrey&lt;/span&gt;</description>
		<content:encoded><![CDATA[<p>I really like to use your module, but I can&#8217;t unless there is a license that clearly grants me permission to use it.  For example MIT, like  lua license itself, or BSD 2-clause.</p>
<p>Best,<br />
Maik</p>
<p><span class='jfriedl'>I made it and I said you can use it. That should be enough. &mdash;Jeffrey</span></p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Michael</title>
		<link>http://regex.info/blog/lua/json#comment-44175</link>
		<dc:creator>Michael</dc:creator>
		<pubDate>Fri, 30 Sep 2011 22:51:21 +0000</pubDate>
		<guid isPermaLink="false">http://regex.info/blog/lua/json#comment-44175</guid>
		<description>Hi, 

thanks for this. I&#039;ve just checked out the file, but I didn&#039;t find any info regarding the license type, just your copyright notice. 

From a legal perspective, if the code comes without a license everyone can have a look but no one can use it, for any type of project. So are there any strings attached?

Cheers, 

Michael

&lt;span class=&#039;jfriedl&#039;&gt;Feel free to use it as you like. &#8212;Jeffrey&lt;/span&gt;</description>
		<content:encoded><![CDATA[<p>Hi, </p>
<p>thanks for this. I&#8217;ve just checked out the file, but I didn&#8217;t find any info regarding the license type, just your copyright notice. </p>
<p>From a legal perspective, if the code comes without a license everyone can have a look but no one can use it, for any type of project. So are there any strings attached?</p>
<p>Cheers, </p>
<p>Michael</p>
<p><span class='jfriedl'>Feel free to use it as you like. &mdash;Jeffrey</span></p>
]]></content:encoded>
	</item>
	<item>
		<title>By: David Kolf</title>
		<link>http://regex.info/blog/lua/json#comment-43721</link>
		<dc:creator>David Kolf</dc:creator>
		<pubDate>Fri, 29 Jul 2011 22:30:54 +0000</pubDate>
		<guid isPermaLink="false">http://regex.info/blog/lua/json#comment-43721</guid>
		<description>Hi, I&#039;ve recently noticed your module and included it in my &lt;a href=&quot;http://lua-users.org/wiki/JsonModules&quot; rel=&quot;nofollow&quot;&gt;comparison of JSON modules on the Lua wiki&lt;/a&gt;. Your module is one of the better pure-Lua JSON implementations and I guess I wouldn&#039;t have needed to write my own if I had found yours earlier. I hope you don&#039;t mind the inclusion in the list.

&lt;span class=&#039;jfriedl&#039;&gt;Thanks for the link, and for the tests. I&#039;ve pushed a new version that addresses some of the problems you found in your tests. Thanks! &#8212;Jeffrey&lt;/span&gt;</description>
		<content:encoded><![CDATA[<p>Hi, I&#8217;ve recently noticed your module and included it in my <a href="http://lua-users.org/wiki/JsonModules" rel="nofollow">comparison of JSON modules on the Lua wiki</a>. Your module is one of the better pure-Lua JSON implementations and I guess I wouldn&#8217;t have needed to write my own if I had found yours earlier. I hope you don&#8217;t mind the inclusion in the list.</p>
<p><span class='jfriedl'>Thanks for the link, and for the tests. I&#8217;ve pushed a new version that addresses some of the problems you found in your tests. Thanks! &mdash;Jeffrey</span></p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Robert</title>
		<link>http://regex.info/blog/lua/json#comment-43688</link>
		<dc:creator>Robert</dc:creator>
		<pubDate>Sun, 24 Jul 2011 21:30:49 +0000</pubDate>
		<guid isPermaLink="false">http://regex.info/blog/lua/json#comment-43688</guid>
		<description>When I add this line to a plugin I am writing I get an error from Lightroom

MyPluginApi:28 cannot open JSON:lua: No such file or directory

The thing that makes no sense to me is that the JSON.lua file is located in the same directory as MyPluginApi.lua

Do you have an example plugin that might show the usage of this JSON library working?

Thanks

&lt;span class=&#039;jfriedl&#039;&gt;It looks as if you have a colon before &#039;lua&#039; rather than a dot. &#8212;Jeffrey&lt;/span&gt;</description>
		<content:encoded><![CDATA[<p>When I add this line to a plugin I am writing I get an error from Lightroom</p>
<p>MyPluginApi:28 cannot open JSON:lua: No such file or directory</p>
<p>The thing that makes no sense to me is that the JSON.lua file is located in the same directory as MyPluginApi.lua</p>
<p>Do you have an example plugin that might show the usage of this JSON library working?</p>
<p>Thanks</p>
<p><span class='jfriedl'>It looks as if you have a colon before &#8216;lua&#8217; rather than a dot. &mdash;Jeffrey</span></p>
]]></content:encoded>
	</item>
</channel>
</rss>

