Changed return format of the activity RESTful interface