Bring back a structure to process stats and at the same time continue to support the more flexible json structure. In addition, versioning was added to future proof the structure.