feat(demo): dump json of all blocks of a file

The code needs to be synchronized with backup_file.