Make attr_json to be able to have a block