Updated api.rb controller to create an array of all peeps and user details, which is then converted in JSON format