Connecting Tech Pros Worldwide Help | Site Map

concat multiple objects with JSON

 
LinkBack Thread Tools Search this Thread
  #1  
Old December 10th, 2007, 02:05 AM
Andrew Poulos
Guest
 
Posts: n/a
Default 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

  #2  
Old December 10th, 2007, 05:25 AM
RobG
Guest
 
Posts: n/a
Default 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
 

Bookmarks

Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On

Popular Articles

What is Bytes?

We are a network of experts and professionals in IT and software development that help one another with answers to tough questions and share insights. Get the best answers to your questions from over 220,989 network members.