<?xml version="1.0" encoding="UTF-8"?><rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom">
<channel>
	<title>jQuery Grid Plugin - jqGrid - Topic: JSON Formatting</title>
	<link>http://www.trirand.com/blog/?page_id=393/feature-request/json-formatting</link>
	<description><![CDATA[Grid plugin]]></description>
	<generator>Simple:Press Version 5.7.5.3</generator>
	<atom:link href="http://www.trirand.com/blog/?page_id=393/feature-request/json-formatting/rss" rel="self" type="application/rss+xml" />
        <item>
        	<title>Pete on JSON Formatting</title>
        	<link>http://www.trirand.com/blog/?page_id=393/feature-request/json-formatting#p1882</link>
        	<category>Feature Request</category>
        	<guid isPermaLink="true">http://www.trirand.com/blog/?page_id=393/feature-request/json-formatting#p1882</guid>
        	        	<description><![CDATA[<p>Tony,</p>
<p>I thought I had tested this a few times and all I can think of is that I had a syntax problem that was the cause, not the quoted string problem.</p>
<p>So, I have re-tested the application with a "standard" json format and it seems to work just fine so I will go back to using flexjson again.</p>
<p>Sorry about that!&#160; My apologies for not checking my assumptions.</p>
<p>Pete</p>
]]></description>
        	        	<pubDate>Thu, 04 Sep 2008 17:12:47 +0300</pubDate>
        </item>
        <item>
        	<title>tony on JSON Formatting</title>
        	<link>http://www.trirand.com/blog/?page_id=393/feature-request/json-formatting#p1879</link>
        	<category>Feature Request</category>
        	<guid isPermaLink="true">http://www.trirand.com/blog/?page_id=393/feature-request/json-formatting#p1879</guid>
        	        	<description><![CDATA[<p>Hello,</p>
<p>Do you have checked the *standart* way?</p>
<p>I think it shouldl work, since after getting the json data I make a standart</p>
<p>javascript eval on the request which bring you to what you want.</p>
</p>
<p>Regards</p>
<p>Tony</p>
]]></description>
        	        	<pubDate>Thu, 04 Sep 2008 04:19:42 +0300</pubDate>
        </item>
        <item>
        	<title>Pete on JSON Formatting</title>
        	<link>http://www.trirand.com/blog/?page_id=393/feature-request/json-formatting#p1873</link>
        	<category>Feature Request</category>
        	<guid isPermaLink="true">http://www.trirand.com/blog/?page_id=393/feature-request/json-formatting#p1873</guid>
        	        	<description><![CDATA[<p>I noticed a difference in the json format that jqgrid uses and the one I see (and have used)&#160;as an example at&#160;the "official" json site:</p>
<p><a href="http://www.json.org/example.html" target="_blank">http://www.json.org/example.html</a></p>
<p>The difference is subtle but important.&#160; In "standard" json the format is something like:</p>
<pre>{"menu": {
  "id": "file",
  "value": "File",
  "popup": {
    "menuitem": [
      {"value": "New", "onclick": "CreateNewDoc()"},
      {"value": "Open", "onclick": "OpenDoc()"},
      {"value": "Close", "onclick": "CloseDoc()"}
    ]
  }
}}</pre>
<pre>&#160;</pre>
<pre>In jqgrid you expect:</pre>
<pre>&#160;</pre>
<pre></pre>
<pre>{menu: {
  id: "file",
  value: "File",
  popup: {
    menuitem: [
      {value: "New", onclick: "CreateNewDoc()"},
      {value: "Open", onclick: "OpenDoc()"},
      {value: "Close", onclick: "CloseDoc()"}
    ]
  }
}}</pre>
<pre>&#160;</pre>
<pre>In this case, jqgrid doesn&#39;t have quotes around the lefthand argument. </pre>
<pre>That causes me problems because I use flexjson in my java code to properly </pre>
<pre>format my java POJO&#39;s into a json string and the format that jqgrid uses is </pre>
<pre>not the same as the "standard" json. </pre>
<pre>&#160;</pre>
<pre>Perhaps a parameter in the jsonReader setting to tell the reader to expect</pre>
<pre>quotes around the left hand arguments and some code to handle it would be </pre>
<pre>a good idea.  Something like "jsonQuoted: true" in the jsonreader.  If I was </pre>
<pre>more familiar with Javascript I might be able to make the change myself. It </pre>
<pre>*would* make it "json standards" compliant I think. </pre>
<pre>&#160;</pre>
<pre>Just a suggestion </pre>
]]></description>
        	        	<pubDate>Wed, 03 Sep 2008 19:03:14 +0300</pubDate>
        </item>
</channel>
</rss>