Hi.
I have standard, generic, nested JSON that I need to move in and out of a TreeGrid.
TreeGrid has no prebaked method to do this (the current JSON functionality requires DHX specific JSON).
I would really appreciate help and ideas on how to do this.
Thank you so much!
Here is an example of the typical JSON I’m dealing with (it’s from Mongo/NoSQL).
{
"_id": "uniqueidhere",
"NpcResponses": [{
"Challenge": "Hello there traveler!",
"PlayerResponses": [{
"Keywords": ["hello","hi"],
"NpcResponses": [{
"Challenge": "Would you [mind] doing something for me?",
"PlayerResponses": [{
"Keywords": ["mind","sure","ok"],
"NpcResponses": [{
"Challenge": "Please [take] this bag of sugar to the stable master.",
"PlayerResponses": [{
"Keywords": ["ok","take","yes"],
"NpcResponses": [{
"Challenge": "Thank you, you are most kind.",
"Event": "AVP_QST_BagOfSugar01"
}]
},
{
"Keywords": ["no"],
"NpcResponses": [{
"SetMood": "Disappointed",
"Challenge": "Oh well, have a nice day."
}]
}]
}]
},
{
"Keywords": ["no"],
"NpcResponses": [{
"Event": "Set Mood Disappointed",
"Challenge": "Never mind, I'll find someone else to help me."
}]
}]
}]
}]
}]
}