469,645 Members | 1,393 Online
Bytes | Developer Community
New Post

Home Posts Topics Members FAQ

Post your question to a community of 469,645 developers. It's quick & easy.

concat multiple objects with JSON

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
Dec 10 '07 #1
1 6016
On Dec 10, 12:56 pm, Andrew Poulos <ap_p...@hotmail.comwrote:
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
Dec 10 '07 #2

This discussion thread is closed

Replies have been disabled for this discussion.

Similar topics

16 posts views Thread by sirsean | last post: by
15 posts views Thread by Christopher Benson-Manica | last post: by
5 posts views Thread by Alex D. | last post: by
1 post views Thread by routeslip | last post: by
2 posts views Thread by holtmann | last post: by
1 post views Thread by Andrew Poulos | last post: by
8 posts views Thread by vunet | last post: by
reply views Thread by gheharukoh7 | last post: by
By using this site, you agree to our Privacy Policy and Terms of Use.