I try to achieve multi level JSON script from datawindow. It suppose to looks like a family tree:
[
{
name: "Canada",
people: [
{
name: "Steve",
children: [
{
name: "Linda",
children: [
{
name: "Steve, Jr.",
friends: [
{
name: "Kriss"
}
//, more friends
]
}
//, more grandchildren
]
}
//, more parents
]
}
//, more grandparents
]
}
//, more countries
]
I created a group for each level in the datawindow.
Group 1 = Countries,
Group 2 = People,
Group 3 = Children ...
When I perform dw_1.ExportJson() It doesn't creates array inside array.
Is there any way to implement it, or Powerbuilder supports only two levels?