# File lib/json/editor.rb, line 794
794:       def create_node(parent, type, content)
795:         iter = if parent
796:           model.append(parent)
797:         else
798:           new_model = Editor.data2model(nil)
799:           toplevel.view_new_model(new_model)
800:           new_model.iter_first
801:         end
802:         iter.type, iter.content = type, content
803:         expand_collapse(parent) if parent
804:         iter
805:       end