public
Created

json2html (v0.0.1) - sample output

  • Download Gist
gistfile1.html
HTML
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 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123
<body>
<div class="expand clearfix even">
<div class="">
<div>
<div class="clearfix even collapse">
<div class="collapsible level1" onclick="j2h.toggleVisibility(this);return false">
[a_table]
</div>
<div class="content">
<table>
<tbody>
<tr>
<th>
name
</th>
<th>
tel
</th>
<th>
email
</th>
</tr>
<tr>
<td>
hugo
</td>
<td>
1234561234
</td>
<td>
hugo@blah.com
</td>
</tr>
<tr>
<td>
joe
</td>
<td>
1234569999
</td>
<td>
joe@blah.com
</td>
</tr>
</tbody>
</table>
</div>
</div>
</div>
<div>
<div class=" clearfix odd collapse">
<div class="collapsible level1" onclick="j2h.toggleVisibility(this);return false">
[straigh_array]
</div>
<div class="content">
<div>
<div class="index">
0&nbsp;
</div><span>&nbsp;&nbsp;a</span>
</div>
<div>
<div class="index">
1&nbsp;
</div><span>&nbsp;&nbsp;b</span>
</div>
<div>
<div class="index">
2&nbsp;
</div><span>&nbsp;&nbsp;c</span>
</div>
</div>
</div>
</div>
<div>
<div class=" clearfix even expand">
<div class="attribute collapsible level1" onclick="j2h.toggleVisibility(this);return false">
an_object
</div>
<div class="content">
<div>
<div class="expand clearfix even">
<div class="attribute collapsible level2" onclick="j2h.toggleVisibility(this);return false">
myAttribute
</div>
<div class="content">
<div>
<div class="leaf level3">
a
</div><span>&nbsp;&nbsp;1</span>
</div>
<div>
<div class="leaf level3">
b
</div><span>&nbsp;&nbsp;2</span>
</div>
</div>
</div>
</div>
<div>
<div class="expand clearfix odd">
<div class="attribute collapsible level2" onclick="j2h.toggleVisibility(this);return false">
anotherAttribute
</div>
<div class="content">
<div>
<div class="leaf level3">
r
</div><span>&nbsp;&nbsp;1</span>
</div>
<div>
<div class="leaf level3">
d
</div><span>&nbsp;&nbsp;2</span>
</div>
</div>
</div>
</div>
</div>
</div>
</div>
</div>
</div>
</body>

Please sign in to comment on this gist.

Something went wrong with that request. Please try again.