Dump and restore tested from json