retrieving friends list from JSON