return json object of all activities after searching
merge conflicts