Gossamer Forum
Quote Reply
JSON
Has anyone worked out how to get GLinks to produce JSON?
I'm finding some difficulties adding the right ['s and {'s etc (basically, 'enclosing' sublists in those - how the heck?)
Something with <%first%> and <%last%> in loops?
Any ideas?

The below is an example of JSON:
Code:
var json = {
"name": "Categories",
"id": "root",
"children": [
{
"name": "Cat1",
"children": [
{
"name": "Cat1.1",
"children": [
{
"name": "Cat1.1.1",
"children": [
{
"name": "Cat1.1.1.1",
"data": {
"$color": "#21ff59"
}
}, {
"name": "Cat1.1.1.2",
"data": {
"$color": "#21ff59"
}
}, {
"name": "Cat1.1.1.3",
"children": [
{
"name": "Cat1.1.1.3.1",
"data": {
"$color": "#21ffc8"
}
}, {
"name": "Cat1.1.1.3.2",
"data": {
"$color": "#21ffc8"
}
}, {
"name": "Cat1.1.1.3.3",
"data": {
"$color": "#21ffc8"
}
}, {
"name": "Cat1.1.1.3.4",
"data": {
"$color": "#21ffc8"
}
}
],
"data": {
"$color": "#21ff59"
}
}, {
"name": "Cat1.1.1.4",
"data": {
"$color": "#21ff59"
}
}, {
"name": "Cat1.1.1.5",
"children": [
{
"name": "Cat1.1.1.5.1",
"children": [
{
"name": "Cat1.1.1.5.1.1",
"data": {
"$color": "#21c8ff"
}
}, { ......
Subject Author Views Date
Thread JSON gotze 20616 Jul 24, 2010, 11:38 AM
Post Re: [gotze] JSON
Andy 20278 Jul 25, 2010, 1:42 AM
Thread Re: [gotze] JSON
tandat 20285 Jul 25, 2010, 2:49 AM
Thread Re: [tandat] JSON
gotze 20263 Jul 25, 2010, 7:49 AM
Thread Re: [gotze] JSON
gotze 20261 Jul 25, 2010, 11:58 AM
Thread Re: [gotze] JSON
gotze 20244 Jul 25, 2010, 12:27 PM
Thread Re: [gotze] JSON
Matthias70 20236 Jul 25, 2010, 12:36 PM
Thread Re: [Matthias70] JSON
gotze 20241 Jul 25, 2010, 12:57 PM
Thread Re: [gotze] JSON
Matthias70 20185 Jul 26, 2010, 9:27 AM
Post Re: [Matthias70] JSON
gotze 20168 Jul 26, 2010, 10:40 AM
Thread Re: [gotze] JSON
courierb 19602 Nov 11, 2011, 9:12 PM
Thread Re: [courierb] JSON
Andy 19619 Nov 13, 2011, 7:08 AM
Thread Re: [Andy] JSON
courierb 19581 Nov 19, 2011, 6:10 PM
Thread Re: [courierb] JSON
Andy 19603 Nov 20, 2011, 8:16 AM
Thread Re: [Andy] JSON
courierb 19586 Nov 20, 2011, 5:13 PM
Thread Re: [courierb] JSON
courierb 19571 Nov 20, 2011, 6:15 PM
Thread Re: [courierb] JSON
Andy 19581 Nov 21, 2011, 12:58 AM
Thread Re: [Andy] JSON
courierb 19523 Nov 22, 2011, 3:41 PM
Thread Re: [courierb] JSON
courierb 19517 Nov 22, 2011, 4:02 PM
Post Re: [courierb] JSON
Andy 19506 Nov 22, 2011, 11:58 PM
Post Re: [gotze] JSON
courierb 19596 Nov 20, 2011, 5:09 PM