json should be encoded with convert_blessed