angularjs does not allow you to create ul recursively within li : How can I create that deep structure with ng-repeat?
I'm having problems with tags that are automatically closed in this directive.

can anybody help me?

    <ul>
        <li>A
            <ul>
                <li>B
                    <ul>
                        <li>C
                           <ul><li>D</li></ul>
                        </li>
                    </ul>
                </li>
            </ul>
        </li>
    </ul>


here is the json code.

    {"obj":[{"code":"0","name":"A"},{"code":"1","name":"B"},
        {"code":"2","name":"C"},{"code":"3","name":"D"}]}

Thanks in advance.