class SyntaxTree::CLI::Json

representation.
An action of the CLI that converts the source into its equivalent JSON

def run(item)

def run(item)
  object = item.handler.parse(item.source).accept(JSONVisitor.new)
  puts JSON.pretty_generate(object)
end