Out of the following methods, only the last one gives me the object id of the user where I convert the ParseUser to a JSON object then access that. Is there a nicer way to get the objectId?
console.log("GET objectId:" + request.user.get('objectId'));
console.log("objectId:" + request.user.objectId);
console.log("[objectId]: " + request.user["objectId"]);
console.log("toJSON: " + request.user.toJSON().objectId);
to get the user or any other parse object objectId in JavaScript you need to use .id and not .objectId In Parse JavaScript the objectId is saved under id property so you need to change your code to
console.log("GET objectId:" + request.user.id);