Connecting Tech Pros Worldwide Help | Site Map

concat multiple objects with JSON

  #1  
Old December 10th, 2007, 03:05 AM
Andrew Poulos
Guest
 
Posts: n/a
I'm building some e-learning that's managed by an learning management
system (LMS). The LMS allows only one "field" for me to store custom
lesson data. The e-learning currently uses a number of separate
javascript objects.

How can I concatenate them into one object (to JSON string them to then
feed them to the LMS) and then to later parse the JSON string back into
the original multiple objects?

Andrew Poulos
  #2  
Old December 10th, 2007, 06:25 AM
RobG
Guest
 
Posts: n/a

re: concat multiple objects with JSON


On Dec 10, 12:56 pm, Andrew Poulos <ap_p...@hotmail.comwrote:
Quote:
I'm building some e-learning that's managed by an learning management
system (LMS). The LMS allows only one "field" for me to store custom
lesson data. The e-learning currently uses a number of separate
javascript objects.
>
How can I concatenate them into one object (to JSON string them to then
feed them to the LMS) and then to later parse the JSON string back into
the original multiple objects?
If your objects have names, then bundle them in an object using
name:objectRef pairs. Convert the object to JSON text.

To retrieve the objects, convert the JSON into an object (usually by
eval'ing it), then pull your individual objects back out.


--
Rob
Closed Thread