Thanks Kem.
I suspected that, but I could not believe it can be that. Now I know.
The best I could do, based on a LR example, was:
[code] Dim Family As New JSONItem
Family.Value(“Description”) = “Information about the Doe Family”
Family.Value(“Parents”) = “John and Jane”
Family.Value(“Childs”) = “Jasond, Jarod, Jessica”
// This object is manipulated like a dictionary
Dim Father As New JSONItem
Father.Value(“Name”) = “John Doe”
Father.Value(“Age”) = 32
Father.Value(“Married”) = True
Father.Value(“Spouse”) = “Jane Doe”
Dim Mother As New JSONItem
Mother.Value(“Name”) = “Jane Doe”
Mother.Value(“Age”) = 30
Mother.Value(“Married”) = True
Mother.Value(“Husband”) = “John Doe”
Dim Kid_First As New JSONItem
Kid_First.Value(“Name”) = “Jasond Doe”
Kid_First.Value(“Age”) = 12
Kid_First.Value(“Father”) = “John Doe”
Kid_First.Value(“Mother”) = “Jane Doe”
Dim Kid_Second As New JSONItem
Kid_Second.Value(“Name”) = “Jarod Doe”
Kid_Second.Value(“Age”) = 10
Kid_Second.Value(“Father”) = “John Doe”
Kid_Second.Value(“Mother”) = “Jane Doe”
Dim Kid_Third As New JSONItem
Kid_Third.Value(“Name”) = “Jessica Doe”
Kid_Third.Value(“Age”) = 8
Kid_Third.Value(“Father”) = “John Doe”
Kid_Third.Value(“Mother”) = “Jane Doe”
dim root as new JSONItem
root.IndentSpacing = 10
root.Append Family
root.Append Father
root.Append Mother
root.Append Kid_First
root.Append Kid_Second
root.Append Kid_Third[/code] *
The ToString result is:
[{"Description":"Information about the Doe Family","Parents":"John and Jane","Childs":"Jasond, Jarod, Jessica"},{"Name":"John Doe","Age":32,"Married":true,"Spouse":"Jane Doe"},{"Name":"Jane Doe","Age":30,"Married":true,"Husband":"John Doe"},{"Name":"Jasond Doe","Age":12,"Father":"John Doe","Mother":"Jane Doe"},{"Name":"Jarod Doe","Age":10,"Father":"John Doe","Mother":"Jane Doe"},{"Name":"Jessica Doe","Age":8,"Father":"John Doe","Mother":"Jane Doe"}]
And I stopped there just because I was searching a way to do what I asked far top.
So, now I have to put the TABLE contents after the code above
(in my real project).
If you are curious to know why I use kids name that starts with a J
John, Jane, seems obvious to me, unconsciously