Fix toJSON for blob promises