I was looking for an answer, but I think this is some kind of strange question. How to convert to a text file using tabs for interval, this:
parent child child parent child grandchild grandhcild
to
{ "name" : "parent", "children" : [ {"name" : "child"}, {"name" : "child"}, ] }, { "name" : "parent", "children" : [ { "name" : "child", "children" : [ {"name" : "grandchild"}, {"name" : "grandchild"}, {"name" : "grandchild"}, ] }, ] }
JSON is probably not perfect, but hopefully makes my conclusion clear.
json javascript jquery algorithm tabs
user1114864
source share