File: editor.rb

# editor.rb

Path: | lib/json/editor.rb
Last Update: | Fri Mar 13 01:32:47 -0600 2009

To use the GUI JSON editor, start the edit_json.rb executable script. It requires ruby-gtk to be installed.

### Required files

gtk2 iconv json rbconfig open-uri

### Methods

edit start

### Public Class methods

edit(json, encoding = 'utf8')

Edit the string json with encoding encoding in the editor.

start(encoding = 'utf8') {|window| ...}

Starts a JSON Editor. If a block was given, it yields to the JSON::Editor::MainWindow instance.

[Validate]