class Exception

def to_json(*args)


{"json_class":"Exception","m":"Foo","b":null}

Output:

puts Exception.new('Foo').to_json
require 'json/add/exception'

Returns a JSON string representing +self+:
def to_json(*args)
  as_json.to_json(*args)
end