<?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: JsonSQL: JSON parser, SQL style</title>
	<atom:link href="http://ajaxian.com/archives/jsonsql-json-parser-sql-style/feed" rel="self" type="application/rss+xml" />
	<link>http://ajaxian.com/archives/jsonsql-json-parser-sql-style</link>
	<description>Cleaning up the web with Ajax</description>
	<lastBuildDate>Thu, 09 Feb 2012 06:55:33 +0000</lastBuildDate>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.2</generator>
	<item>
		<title>By: oliverclevont</title>
		<link>http://ajaxian.com/archives/jsonsql-json-parser-sql-style/comment-page-1#comment-260638</link>
		<dc:creator>oliverclevont</dc:creator>
		<pubDate>Fri, 18 Jan 2008 10:59:10 +0000</pubDate>
		<guid isPermaLink="false">http://ajaxian.com/?p=3214#comment-260638</guid>
		<description>Should provide an abstraction that also caters to the upcoming Offline browser storage API.</description>
		<content:encoded><![CDATA[<p>Should provide an abstraction that also caters to the upcoming Offline browser storage API.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: nextdb</title>
		<link>http://ajaxian.com/archives/jsonsql-json-parser-sql-style/comment-page-1#comment-260614</link>
		<dc:creator>nextdb</dc:creator>
		<pubDate>Thu, 17 Jan 2008 13:31:16 +0000</pubDate>
		<guid isPermaLink="false">http://ajaxian.com/?p=3214#comment-260614</guid>
		<description>An interesting thing to consider is how you go &quot;the other way&quot;. That is, how do you produce JSON Objects that represent convenient &quot;views&quot; of data structured in a relational database. NextQuery is the query language of http://nextdb.net that allows you to &quot;reshape&quot; the results of the relational query into JSON Objects.  Responding to the earlier post, that said &quot;...there are some strong conceptual mismatches between SQL and JSON&quot;, NextQuery addresses some of these concerns, and allows for a very natural bridge from the relational model to JSON.</description>
		<content:encoded><![CDATA[<p>An interesting thing to consider is how you go &#8220;the other way&#8221;. That is, how do you produce JSON Objects that represent convenient &#8220;views&#8221; of data structured in a relational database. NextQuery is the query language of <a href="http://nextdb.net" rel="nofollow">http://nextdb.net</a> that allows you to &#8220;reshape&#8221; the results of the relational query into JSON Objects.  Responding to the earlier post, that said &#8220;&#8230;there are some strong conceptual mismatches between SQL and JSON&#8221;, NextQuery addresses some of these concerns, and allows for a very natural bridge from the relational model to JSON.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: KrisKowal</title>
		<link>http://ajaxian.com/archives/jsonsql-json-parser-sql-style/comment-page-1#comment-260603</link>
		<dc:creator>KrisKowal</dc:creator>
		<pubDate>Wed, 16 Jan 2008 18:38:23 +0000</pubDate>
		<guid isPermaLink="false">http://ajaxian.com/?p=3214#comment-260603</guid>
		<description>I like the idea of using a DSL for queries.  For the joy of the exercise alone, here&#039;s the equivalent in Chiron JavaScript:
&lt;code&gt;include(&#039;base.js&#039;);&lt;/code&gt;
&lt;code&gt;where(arr, get(&#039;id&#039;).then(gt(4))).each(get(&#039;age&#039;)).sorted()&lt;/code&gt;

I&#039;d love to further explore translating queries in a DSL into functions that operate on JavaScript objects.

Perhaps this is a good place for partial application:
&lt;code&gt;query(dsl, array of objects) -&gt; array of objects&lt;/code&gt;
&lt;code&gt;query(dsl) -&gt; Query&lt;/code&gt; reusable compiled query
&lt;code&gt;query(dsl)(array of objects) -&gt; array of objects&lt;/code&gt;</description>
		<content:encoded><![CDATA[<p>I like the idea of using a DSL for queries.  For the joy of the exercise alone, here&#8217;s the equivalent in Chiron JavaScript:<br />
<code>include('base.js');</code><br />
<code>where(arr, get('id').then(gt(4))).each(get('age')).sorted()</code></p>
<p>I&#8217;d love to further explore translating queries in a DSL into functions that operate on JavaScript objects.</p>
<p>Perhaps this is a good place for partial application:<br />
<code>query(dsl, array of objects) -&gt; array of objects</code><br />
<code>query(dsl) -&gt; Query</code> reusable compiled query<br />
<code>query(dsl)(array of objects) -&gt; array of objects</code></p>
]]></content:encoded>
	</item>
	<item>
		<title>By: kadnan</title>
		<link>http://ajaxian.com/archives/jsonsql-json-parser-sql-style/comment-page-1#comment-260600</link>
		<dc:creator>kadnan</dc:creator>
		<pubDate>Wed, 16 Jan 2008 17:14:11 +0000</pubDate>
		<guid isPermaLink="false">http://ajaxian.com/?p=3214#comment-260600</guid>
		<description>Awesome stuff. Hope author would provide DML feature as well.</description>
		<content:encoded><![CDATA[<p>Awesome stuff. Hope author would provide DML feature as well.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: kriszyp</title>
		<link>http://ajaxian.com/archives/jsonsql-json-parser-sql-style/comment-page-1#comment-260599</link>
		<dc:creator>kriszyp</dc:creator>
		<pubDate>Wed, 16 Jan 2008 16:58:56 +0000</pubDate>
		<guid isPermaLink="false">http://ajaxian.com/?p=3214#comment-260599</guid>
		<description>While I think that these other approaches are generally better for JSON, I don&#039;t want to be too negative, jsonSQL is not without merit. There may be those out there for whom SQL is their most familiar language, and I think that this might benefit them.</description>
		<content:encoded><![CDATA[<p>While I think that these other approaches are generally better for JSON, I don&#8217;t want to be too negative, jsonSQL is not without merit. There may be those out there for whom SQL is their most familiar language, and I think that this might benefit them.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: sandrejev</title>
		<link>http://ajaxian.com/archives/jsonsql-json-parser-sql-style/comment-page-1#comment-260597</link>
		<dc:creator>sandrejev</dc:creator>
		<pubDate>Wed, 16 Jan 2008 15:50:56 +0000</pubDate>
		<guid isPermaLink="false">http://ajaxian.com/?p=3214#comment-260597</guid>
		<description>Writing it in jquery or in prototype (or in whatever great framework out there) is not so bad either:

var arr = [
   {id: 1, age: 45}, 
   {id: 2, age: 17}, 
   {id: 3, age: 22}, 
   {id: 4, age: 31}, 
   {id: 5, age: 14}, 
   {id: 6, age: 28}, 
   {id: 7, age: 15}];

$.map(arr, function(r){ if(r.id &gt; 4) return r.age }).sort()</description>
		<content:encoded><![CDATA[<p>Writing it in jquery or in prototype (or in whatever great framework out there) is not so bad either:</p>
<p>var arr = [<br />
   {id: 1, age: 45},<br />
   {id: 2, age: 17},<br />
   {id: 3, age: 22},<br />
   {id: 4, age: 31},<br />
   {id: 5, age: 14},<br />
   {id: 6, age: 28},<br />
   {id: 7, age: 15}];</p>
<p>$.map(arr, function(r){ if(r.id &gt; 4) return r.age }).sort()</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: kriszyp</title>
		<link>http://ajaxian.com/archives/jsonsql-json-parser-sql-style/comment-page-1#comment-260594</link>
		<dc:creator>kriszyp</dc:creator>
		<pubDate>Wed, 16 Jan 2008 14:03:28 +0000</pubDate>
		<guid isPermaLink="false">http://ajaxian.com/?p=3214#comment-260594</guid>
		<description>This is a reasonable idea, and good job with implementing it, but there are some strong conceptual mismatches between SQL and JSON. JSON has an object structure, not a flat table structure. For this reason, object databases have used OQL (object query language) which looks similiar SQL, but is designed to meet the different data structure needs of object structures. However, your jsonSQL actually looks more like OQL than SQL (although of course I understand the marketability of &quot;SQL&quot; over &quot;OQL&quot;).
However, for the purpose of querying JSON object-structured data, I believe JsonPath generally provides a much cleaner, more compact, and more appropriate syntax for querying JSON data.</description>
		<content:encoded><![CDATA[<p>This is a reasonable idea, and good job with implementing it, but there are some strong conceptual mismatches between SQL and JSON. JSON has an object structure, not a flat table structure. For this reason, object databases have used OQL (object query language) which looks similiar SQL, but is designed to meet the different data structure needs of object structures. However, your jsonSQL actually looks more like OQL than SQL (although of course I understand the marketability of &#8220;SQL&#8221; over &#8220;OQL&#8221;).<br />
However, for the purpose of querying JSON object-structured data, I believe JsonPath generally provides a much cleaner, more compact, and more appropriate syntax for querying JSON data.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Aaron</title>
		<link>http://ajaxian.com/archives/jsonsql-json-parser-sql-style/comment-page-1#comment-260593</link>
		<dc:creator>Aaron</dc:creator>
		<pubDate>Wed, 16 Jan 2008 13:53:27 +0000</pubDate>
		<guid isPermaLink="false">http://ajaxian.com/?p=3214#comment-260593</guid>
		<description>Love the idea! Seems natural to use sql for json too.</description>
		<content:encoded><![CDATA[<p>Love the idea! Seems natural to use sql for json too.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: JohnP</title>
		<link>http://ajaxian.com/archives/jsonsql-json-parser-sql-style/comment-page-1#comment-260592</link>
		<dc:creator>JohnP</dc:creator>
		<pubDate>Wed, 16 Jan 2008 13:15:20 +0000</pubDate>
		<guid isPermaLink="false">http://ajaxian.com/?p=3214#comment-260592</guid>
		<description>Very dangerous!</description>
		<content:encoded><![CDATA[<p>Very dangerous!</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: dcrec1</title>
		<link>http://ajaxian.com/archives/jsonsql-json-parser-sql-style/comment-page-1#comment-260591</link>
		<dc:creator>dcrec1</dc:creator>
		<pubDate>Wed, 16 Jan 2008 12:45:53 +0000</pubDate>
		<guid isPermaLink="false">http://ajaxian.com/?p=3214#comment-260591</guid>
		<description>Very good, impressive!</description>
		<content:encoded><![CDATA[<p>Very good, impressive!</p>
]]></content:encoded>
	</item>
</channel>
</rss>

