Changed blocks to json format