Hello Sir,
I will create Jquery code that can read elements from array and create checkbox dynamically like the example you have provided.
my array looks like this [{"id":"22","name":"paris"},{"id":"42","name":"milan"},{"id":"43","name":"russia"},{"id":"54","name":"newyork"},{"id":"56","name":"london"}]
here only condition is each column should have only 4 check boxes rest of the checkbx should come in next column.
I can develop the code needed for you using jquery & Ajax and Json Encode & Decode.
Your Invitation over a private chat would be highly appreciated.
Regards,
Sagar
Xcodethemes