javascript - Pushing data into an array in a Json object -
i need push an object array in in json file. make simple lets json looks this:
var jsonobj = { "elements" : [] }
i tried push() method didnt work. tried assign jsonobj.elements[0]= ... fails. how can make work?
Comments
Post a Comment