Skip to main content
Stack Overflow
  1. About
  2. For Teams

Timeline for Creating a json array and json items with jquery?

Current License: CC BY-SA 2.5

7 events
when toggle format what by license comment
Jun 6, 2012 at 4:48 history edited Community Bot CC BY-SA 3.0
http://www.json.org/json2.js was remapped to https://github.com/douglascrockford/JSON-js/blob/master/json2.js by Jarrod Dixon (3)
Jun 16, 2010 at 15:07 vote accept user246114
Jun 16, 2010 at 15:07 vote accept user246114
Jun 16, 2010 at 15:07
Jun 16, 2010 at 3:59 comment added Christian C. Salvadó @user246114: You need to use the JSON.stringify method to convert that array and the object elements it has to JSON, that method is natively available on all browsers except IE <= 7, you can add the json2.js library to your page to make it work on IE <= 7.
Jun 16, 2010 at 3:46 comment added user246114 That pretty much looks like what I need, but how do I make that array a string? I want to send it to a server-side script, and I hope to deserialize it server-side to operate on the individual horse objects there, thanks.
Jun 16, 2010 at 0:46 comment added Nick Craver +1 - Not that it makes a huge difference, but $.data(el, 'd') would be a lot more efficient in this case, no need to create the jQuery wrappers unless you need to.
Jun 16, 2010 at 0:21 history answered Christian C. Salvadó CC BY-SA 2.5

AltStyle によって変換されたページ (->オリジナル) /