I've been struggling with handling JSON values for some time now. When making an AJAX call, I receive JSON values and now I need to display them in a specific format. For instance, let's say the returned values are
{"Heading 1":["Content 1","Content 2"],"Heading 2":["Content 1","COntent 2","Content 3"],"Heading3":["Content 1"]}
I would like to present them as follows:
<h4>Heading 1</h4> <input type="checkbox">Content 1<br><input type="checkbox">Content 2<br>
<h4>Heading 2</h4> <input type="checkbox">Content 1<br><input type="checkbox">Content 2<br><input type="checkbox">Content 3<br>
<h4>Heading 3</h4> <input type="checkbox">Content 1<br>
Any suggestions on how to achieve this?