bundling up individual hash map keys into an array and returning json