I
I
igorc752018-10-27 00:07:50
JSON
igorc75, 2018-10-27 00:07:50

Nestable - how to iterate over JSON to build a hierarchy?

Here is the JSON:

[{"id":2},{"id":3,"children":[{"id":5},{"id":6},{"id":7}]},{"id ":8,"children":[{"id":9},{"id":10}]},{"id":12,"children":[{"id":14}]},{ "id":13},{"id":15}]

How to make this JSON build a hierarchy in PHP?

Answer the question

In order to leave comments, you need to log in

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question