I have a pointer in one of my Parse.com datastore objects. I need to extract the objectId from it. This is the json Customer object in my cloud code:
"Customer":{"__type":"Pointer","className":"_User","objectId":"oowk8Vgcyg"},
I tried
var customer = request.object.get("Customer")
This prints out [object Object].
Now how do I get the objectId from it? I tried
customer.objectId
or
customer[objectId]
or
customer["objectId"]
or the various with or without quotes
customer.get(objectId)
but none works. What's the correct syntax?