# File lib/json/editor.rb, line 812
812:       def create_node(parent, type, content)
813:         iter = if parent
814:           model.append(parent)
815:         else
816:           new_model = Editor.data2model(nil)
817:           toplevel.view_new_model(new_model)
818:           new_model.iter_first
819:         end
820:         iter.type, iter.content = type, content
821:         expand_collapse(parent) if parent
822:         iter
823:       end