I have table for Location information which contains "Name", "Code", "Parent" and "Name" field contains all Country, State, District, Taluk names in single field.
But I would like to view in below format.
I found some similar problem statement here How to create query from parent child hierarchy table but which looks little complex using XML approach and it shows Parent and Child code but not the name field, As per comment mentioned in the thread we can get results by JSON approach. It would be great if I get help using JSON approach.


