Hello,
I'm having an issue with parsing a JSON string that contains an array:
|
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 |
<div class="sfcode"><br /> <div class=""""""""""sfcode""""""""""><br /> <div class=""""""""""sfcode"""""""""">{"max":20,"total":1,"rows":[{"line":"THIRD_LINE","cell":123456789,"aptitudeHashSet":[{"skillName":"Swimming"<br /> ,"value":1,"id":3,"color":"RED"},{"skillName":"Shotput","value":5,"id":1,"color":"WHITE"},{"skillName"<br /> :"Track","value":5,"id":2,"color":"GREEN"}],"name":"jon smith","id":1,"region":"The end","available"<br /> :true}],"page":1}</div></div><br /><br /></div>What I would like to have displayed in JQgrid is something like:<br /><br /><br /> <table border="1"><br /> <tbody><br /> <tr><br /> <th>name<br /> </th><th>region<br /> </th><th>cell<br /> </th><th>line<br /> </th><th>SWIMMING ('skillName')<br /> </th><th>swimmingColor<br /> </th><th>~~next skill etc<br /> </th></tr><br /> <tr><br /> <td>Jon Smith</td><br /> <td>The end</td><br /> <td>123456789</td><br /> <td>FIRST_LINE</td><br /> <td>1 ('value')</td><br /> <td>RED</td><br /> <td>~~next skill etc</td><br /> </tr><br /> </tbody><br /> </table><br /> <br /> <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 /> |
Copyright 2014 TriRand LtdAll Rights ReservedRSS
Back to Top