Parse Ruby's Marshal objects into JavaScript objects and JSON.