The way I would do it is when you have converted the string back to an object. Then you add the item.
What do you use to work with JSON in Javascript? Manually you can do it but there are also premade scripts like the JSON parser (see link at bottom of http://json.org/js.html) or some others.
If you need details then we need to know what you already know about JSON and are using to work with it in Javascript.
bol
Main Topics
Browse All Topics





by: mplungjanPosted on 2009-10-17 at 05:35:48ID: 25595765
I suspect you do not want to add to the JSON but to the sales object
":"Marc"," lastname": "Johnson"}
sales[1]={"firstname