A
A
akubenov2015-11-18 14:23:56
JavaScript
akubenov, 2015-11-18 14:23:56

How to get parent object in json?

There is a tree-like json object:

[
  {
    "id": 1,
    "code": "111",
    "description": "Описание",
    "status": "true",
    "children": [
      {
        "id": 22,
        "code": "22222",
        "description": "Описание",
        "status": "false",
        "children": []
      }
    ]
  }
]


It is necessary to go over the parents in the tree. Is it possible to implement this? Thanks in advance :)

Answer the question

In order to leave comments, you need to log in

1 answer(s)
D
Dmitry Pavlov, 2015-11-18
@dmitry_pavlov

What are you actually running? What programming language? If abstractly there are a lot of options

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question