Method: String#to_json

Defined in:
lib/json/objects.rb

#to_jsonObject

produce a string in double quotes with all the necessary quoting done



61
62
63
# File 'lib/json/objects.rb', line 61

def to_json
  return String.to_json(self)
end