RE: Create a JSON representation of the tree/list below.

1 Answers

    JSON Representation

    "root": {
    "child1": { "child11": "First Grand Children" },
    "child2": {
    "child21": "Second First Grand Children",
    "child22": "Second Second Grand Children"
    "child3": { "child31": "Third First Grand Children" }

    XML Representation

    <?xml version="1.0" encoding="UTF-8" ?>
    <child11>First Grand Children</child11>
    <child21>Second First Grand Children</child21>
    <child22>Second Second Grand Children</child22>
    <child31>Third First Grand Children</child31>

    Kid Answered on December 23, 2015.
    Add Comment

    Your Answer

    By posting your answer, you agree to the privacy policy and terms of service.