How to create a JSON Object {"x":"16","y":"XXXX"}.... in JQUERY?
- by nobosh
Can someone help me understand how to create a JSON object like: [{"locationID":"16","locationDesc":"XXXX"}, {"locationID":"111","locationDesc":"XXXX"}, {"locationID":"12","locationDesc":"XXXX"}, {"locationID":"11","locationDesc":"XXXX"}]
I'd like to build this object via a LOOP, so some way to append over and over.
thxs