The easiest way I can explain this in something everyone knows is an email program's Inbox folders. You start out with an empty folder, all the new messages go in it. Fine.
Now, the user wants to add a sub-folder, Mark, and sub-folder Work. Fine, I can do that. Building it is easy.
.....messages in Inbox root not in a sub-folder....
Now the user is going crazy:
This is all fine if I make the JSON array "hardcoded" from the start so I would know how to access it:
BUT, it was created by the user, so how do I step through the dynamically created JSON database not knowing the names (per se) and the depth of the array?
That returns an object pointing to that email message, in which I can do:
The same issue above also carries over to deleting the email message, deleting entire folders, etc.
I looked at TaffyDB but what I tried didn't work. It doesn't seem to like nested arrays.
This post has been edited by mritter: 07 October 2010 - 08:04 PM