getProperties method
Get values of all properties in specified object and returns them as a map.
The object can be a user defined object, map or array. Returned properties correspondently are object properties, map key-pairs or array elements with their indexes.
obj
an object to get properties from. Returns a map, containing the names of the object's properties and their values.