Refactor of the generator class. Now the json are an array, and not an
Object.