C# .NET - Can we create Json string as parent child relation

Asked By subrat nayak on 28-Mar-13 10:32 AM
can you please let me know one example of Json string which is having Parent child relation and how to read the JSON string based on parent ID.
Robbe Morris replied to subrat nayak on 28-Mar-13 11:20 AM
You just create ParentID and ChildID properties on each class.  Then, write typical recursion code to iterate through your flat result set looking for ParentID = x.  There is nothing special in regards to JSON.