<?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: Custom JSON Parsing - Arrays</title>
	<link>http://www.trirand.com/blog/?page_id=393/help/custom-json-parsing-arrays</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/help/custom-json-parsing-arrays/rss" rel="self" type="application/rss+xml" />
        <item>
        	<title>bpcm on Custom JSON Parsing - Arrays</title>
        	<link>http://www.trirand.com/blog/?page_id=393/help/custom-json-parsing-arrays#p25442</link>
        	<category>Help</category>
        	<guid isPermaLink="true">http://www.trirand.com/blog/?page_id=393/help/custom-json-parsing-arrays#p25442</guid>
        	        	<description><![CDATA[<blockquote>
<p>tony said:</p>
</blockquote>
<blockquote>
<p>Hello,</p>
<p>You will need to configure your JSON reader. Reading docs us usefull thing.</p>
<p><a rel="nofollow" href="/jqgridwiki/doku.php?id=wiki:retrieving_data#json_data" target="_blank"></a><a href="http://www.trirand.com/jqgridw" rel="nofollow" target="_blank">http://www.trirand.com/jqgridw</a>.....#json_data</p>
</p>
<p>Regards</p>
</blockquote>
<hr />
<p>Hello,</p>
<p>I can seem to display data in the table using &#39;dot notation&#39; but when I edit a &#39;person&#39;, jqGrid returns:</p>
</p>
<p><input type='button' class='sfcodeselect' name='sfselectit6363' value='Select Code' data-codeid='sfcode6363' /></p>
<div class='sfcode' id='sfcode6363'>{&#34;id&#34;:&#34;12&#8243;,&#34;name&#34;:&#34;jon smith&#34;,&#34;region&#34;:&#34;The end&#34;,&#34;line&#34;:&#34;FIRST_LINE&#34;,&#34;skillName&#34;:&#34;Swimming&#34;,&#34;color&#34;:&#34;GREEN&#34;,&#34;value&#34;:&#34;5&#8243;}</div>
<p>I think the problem is that I have unnamed arrays within an array; jqGrid ignores them<br />It does not return an array of skills.I would like it to return: </p>
<p><input type='button' class='sfcodeselect' name='sfselectit3171' value='Select Code' data-codeid='sfcode3171' /></p>
<div class='sfcode' id='sfcode3171'>&#34;id&#34;:&#34;1&#8243;,&#34;name&#34;:&#34;jon smith&#34;,&#34;region&#34;:&#34;The end&#34;,&#34;line&#34;:&#34;FIRST_LINE&#34;,<em><span style=&#34;&#34;&#34;&#34;&#34;text-decoration:&#34;&#34;&#34;&#34;><strong>a<span style=&#34;&#34;text-decoration:&#34;>ptitudeHashSet&#34;:&#160; [{&#34;skillName&#34;:&#34;Swimming&#34;,&#34;color&#34;:&#34;silver&#34;,&#34;value&#34;:&#34;5&#34;}, {&#34;skillName&#34;:&#34;Shotput&#34;,&#34;color&#34;:&#34;purple&#34;,&#34;value&#34;:&#34;9&#34;}]</span></strong></span>} <br /></em></div>
<p><em>&#160;</em> </p>
<p>I think it needs to match format of servers JSON:</p>
</p>
<p><input type='button' class='sfcodeselect' name='sfselectit1054' value='Select Code' data-codeid='sfcode1054' /></p>
<div class='sfcode' id='sfcode1054'>{&#34;max&#34;:20,&#34;total&#34;:1,&#34;rows&#34;:[{&#34;line&#34;:&#34;THIRD_LINE&#34;,&#34;cell&#34;:123456789, <span style=&#34;&#34;text-decoration:&#34;>&#34;aptitudeHashSet&#34;:[{&#34;skillName&#34;:&#34;Swimming&#34; ,&#34;value&#34;:1,&#34;id&#34;:3,&#34;color&#34;:&#34;RED&#34;}, {&#34;skillName&#34;:&#34;Shotput&#34;,&#34;value&#34;:5,&#34;id&#34;:1,&#34;color&#34;:&#34;WHITE&#34;}, <span style=&#34;&#34;&#34;&#34;&#34;text-decoration:&#34;&#34;&#34;&#34;><em><strong>{&#34;skillName&#34; :&#34;Track&#34;,&#34;value&#34;:5,&#34;id&#34;:2,&#34;color&#34;:&#34;GREEN&#34;}]</strong></em></span></span>, &#34;name&#34;:&#34;jon smith&#34;,&#34;id&#34;:1,&#34;region&#34;:&#34;The end&#34;,&#34;available&#34; :true}], &#34;page&#34;:1}</div>
<p><input type='button' class='sfcodeselect' name='sfselectit6712' value='Select Code' data-codeid='sfcode6712' /></p>
<div class='sfcode' id='sfcode6712'>&#160; colModel:[&#160; ...{<br />&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160; name:&#39;name&#39;,<br />&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160; width:300,<br />&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160; editable:true,<br />&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160; editrules:{required:true}<br />&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160; },{ width:52,<br />&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160; editable:true,<br />&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160; jsonmap:&#34;aptitudeHashSet.1.value&#34;<br />&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160; }...];</div>
<p><input type='button' class='sfcodeselect' name='sfselectit2965' value='Select Code' data-codeid='sfcode2965' /></p>
<div class='sfcode' id='sfcode2965'>jsonReader:{<br />&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160; root:&#34;rows&#34;,<br />&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160; repeatitems:false}</div>
<p>Somehow I have configured jqgrid incorrectly. It seems the colmodel flattens out the arrays.</p>
<p>Thank you, bpcm </p>
]]></description>
        	        	<pubDate>Fri, 16 Dec 2011 18:07:45 +0200</pubDate>
        </item>
        <item>
        	<title>tony on Custom JSON Parsing - Arrays</title>
        	<link>http://www.trirand.com/blog/?page_id=393/help/custom-json-parsing-arrays#p25436</link>
        	<category>Help</category>
        	<guid isPermaLink="true">http://www.trirand.com/blog/?page_id=393/help/custom-json-parsing-arrays#p25436</guid>
        	        	<description><![CDATA[<p>Hello,</p>
<p>You will need to configure your JSON reader. Reading docs us usefull thing.</p>
<p><a href="http://www.trirand.com/jqgridwiki/doku.php?id=wiki:retrieving_data#json_data" rel="nofollow" target="_blank"><a href="http://www.trirand.com/jqgridw" rel="nofollow">http://www.trirand.com/jqgridw</a>.....#json_data</a></p>
</p>
<p>Regards</p>
]]></description>
        	        	<pubDate>Fri, 16 Dec 2011 11:01:27 +0200</pubDate>
        </item>
        <item>
        	<title>bpcm on Custom JSON Parsing - Arrays</title>
        	<link>http://www.trirand.com/blog/?page_id=393/help/custom-json-parsing-arrays#p25434</link>
        	<category>Help</category>
        	<guid isPermaLink="true">http://www.trirand.com/blog/?page_id=393/help/custom-json-parsing-arrays#p25434</guid>
        	        	<description><![CDATA[<p>Anyone have any insight on this issue?</p>
]]></description>
        	        	<pubDate>Thu, 15 Dec 2011 17:37:48 +0200</pubDate>
        </item>
        <item>
        	<title>bpcm on Custom JSON Parsing - Arrays</title>
        	<link>http://www.trirand.com/blog/?page_id=393/help/custom-json-parsing-arrays#p25363</link>
        	<category>Help</category>
        	<guid isPermaLink="true">http://www.trirand.com/blog/?page_id=393/help/custom-json-parsing-arrays#p25363</guid>
        	        	<description><![CDATA[<p>Hello,</p>
<p>I&#39;m having an issue with parsing a JSON string that contains an array:</p>
<div class="netInfoResponseText netInfoText ">
<pre><p><input type='button' class='sfcodeselect' name='sfselectit9045' value='Select Code' data-codeid='sfcode9045' /></p><div class='sfcode' id='sfcode9045'>
<div class=&#34;&#34;&#34;&#34;&#34;&#34;&#34;&#34;&#34;&#34;sfcode&#34;&#34;&#34;&#34;&#34;&#34;&#34;&#34;&#34;&#34;>
<div class=&#34;&#34;&#34;&#34;&#34;&#34;&#34;&#34;&#34;&#34;sfcode&#34;&#34;&#34;&#34;&#34;&#34;&#34;&#34;&#34;&#34;>{&#34;max&#34;:20,&#34;total&#34;:1,&#34;rows&#34;:[{&#34;line&#34;:&#34;THIRD_LINE&#34;,&#34;cell&#34;:123456789,&#34;aptitudeHashSet&#34;:[{&#34;skillName&#34;:&#34;Swimming&#34;
,&#34;value&#34;:1,&#34;id&#34;:3,&#34;color&#34;:&#34;RED&#34;},{&#34;skillName&#34;:&#34;Shotput&#34;,&#34;value&#34;:5,&#34;id&#34;:1,&#34;color&#34;:&#34;WHITE&#34;},{&#34;skillName&#34;
:&#34;Track&#34;,&#34;value&#34;:5,&#34;id&#34;:2,&#34;color&#34;:&#34;GREEN&#34;}],&#34;name&#34;:&#34;jon smith&#34;,&#34;id&#34;:1,&#34;region&#34;:&#34;The end&#34;,&#34;available&#34;
:true}],&#34;page&#34;:1}</div></div><br /><br /></div>What I would like to have displayed in JQgrid is something like:<br /><br />
<table border="1">
<tbody>
<tr>
<th>name
</th><th>region
</th><th>cell
</th><th>line
</th><th>SWIMMING (&#39;skillName&#39;)
</th><th>swimmingColor
</th><th>~~next skill etc
</th></tr>
<tr>
<td>Jon Smith</td>
<td>The end</td>
<td>123456789</td>
<td>FIRST_LINE</td>
<td>1 (&#39;value&#39;)</td>
<td>RED</td>
<td>~~next skill etc</td>
</tr>
</tbody>
</table>

<br /><br /> In our DB we have a persons table that references a skills table with a list of skills.<br /><br />Is this possible or do I need to generate a customized JSON string from the server?<br /><br />Thanks,<br />bpcm<br /><br /></pre>
</div>
]]></description>
        	        	<pubDate>Fri, 09 Dec 2011 18:51:05 +0200</pubDate>
        </item>
</channel>
</rss>