       if message.isEmpty()
         sendResponseObject req, res, {"error":"No messages were received."}
       else
-        constructTaskObject message.getBody(), (taskConstructionError, taskObject) ->
+        messageBody = JSON.parse message.getBody()
+        constructTaskObject messageBody, (taskConstructionError, taskObject) ->
           if taskConstructionError?
             sendResponseObject req, res, {"error":taskConstructionError}
           else
             sendResponseObject req, res, taskObject
 
-            
+
   app.post '/scoring/queue', (req, res) ->
     clientResponseObject = req.body
     ###

      "taskGeneratingPlayerID": sessionInformation.creator
      "code": sessionInformation.code
      "players": sessionInformation.players
    callback err, taskObject

      ###
      "players" : [
        {"ID":"51eb2714fa058cb20d0006ef", "team":"humans", "userCodeMap": "code goes here"}
        {"ID":"51eb2714fa058cb20d00fedg", "team":"ogres","userCodeMap": "code goes here"}
      ]
      ###



getSessionInformation = (sessionID, callback) ->
  LevelSession.findOne {"_id": mongoose.Types.ObjectId(sessionID)}, (err, session) ->
    if err?
      callback err, {"error":"There was an error retrieving the session."}
    else
      sessionInformation =
        "sessionID": session._id
        "players": session.players
        "code": session.code
        "changed": session.changed
        "creator": session.creator
      callback err, sessionInformation

        {"ID":"51eb2714fa058cb20d00fedg", "team":"ogres","metrics": {"reachedGoal":true, "rank":1}}
      ]
    ###
    res.end("You posted an object to score!")


