Query collection name and add it to json data