json.discipline do json.(@item.sub_discipline&.discipline, :id, :name) end json.sub_discipline do json.(@item.sub_discipline, :id, :name) end json.tag_disciplines @item.tag_disciplines do |tag| json.(tag, :id, :name) end json.(@item, :id, :name, :item_type, :difficulty) json.analysis @item.analysis json.choices @item.item_choices do |choice| json.choice_text choice.choice_text json.is_answer choice.is_answer end