class Set

def to_json(*args)


{"json_class":"Set","a":["foo","bar","baz"]}

Output:

puts Set.new(%w/foo bar baz/).to_json
require 'json/add/set'

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