Going through json output and building email list