I am getting the response object as :
{"emailID":{"__type":"Pointer","className":"Employees","objectId":"Ap8MmrvYUl"},"slotNo":{"__type":"Pointer","className":"ParkingSlots","objectId":"ASyr5tgBtl"},"vehicleType":{"__type":"Pointer","className":"TypeOfVehicle","objectId":"F5R4VRExA6"},"isDeallocated":false,"isReserved":false,"allocatedDate":{"__type":"Date","iso":"2014-02-11T09:50:00.000Z"},"objectId":"earFXqNB65","createdAt":"2014-02-11T09:50:38.169Z","updatedAt":"2014-02-11T09:53:05.794Z","__type":"Object","className":"ParkingAllocationStatus"}
Needed:
I want to get the iso value of allocatedDate, tried using the
var obj = object.get("allocatedDate");
console.log(obj.iso);
But resulted in error like : get is not a function or undefined.