Beginner here trying to figure out best way to structure some JSON and output the below nested <ul>
Each of the bolded items below are the values in the JSON. How might I structure the JSON and then how to build the DOM structure with jQuery? Any help greatly appreciated.
<ul>
<li>Topic 1
<ul>
<li id="foo_item1a">
<a href="destination_Item1a">
<strong>Lorem</strong>
<span>Item 1a</span>
<em>Ipsum</em>
</a>
</li>
<li id="foo_item1b">
<a href="destination_Item1b">
<strong>Dolor</strong>
<span>Item 1b</span>
<em>Sit</em>
</a>
</li>
</ul>
</li>
<li>Topic 2
<ul>
<li id="foo_item2a">
<a href="destination_Item2a">
<strong>Lorem</strong>
<span>Item 2a</span>
<em>Ipsum</em>
</a>
</li>
<li id="foo_item2b">
<a href="destination_Item2b">
<strong>Dolor</strong>
<span>Item 2b</span>
<em>Sit</em>
</a>
</li>
</ul>
</li>
</ul>