def json_attributes(content_block)
    attributes =
      content_block
        .attributes
        .slice('id', 'block_type', 'content', 'sort_index')