File: edit_json.rb

package info (click to toggle)
libjson-ruby 1.1.2-1%2Blenny1
  • links: PTS, VCS
  • area: main
  • in suites: lenny
  • size: 760 kB
  • ctags: 542
  • sloc: ruby: 3,040; ansic: 2,470; makefile: 19
file content (11 lines) | stat: -rwxr-xr-x 205 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
#! /usr/bin/ruby1.8
$KCODE = 'U'
require 'json/editor'

filename, encoding = ARGV
JSON::Editor.start(encoding) do |window|
  if filename
    window.file_open(filename)
  end
end
  # vim: set et sw=2 ts=2: