Class: Object

Inherits:
BasicObject
Defined in:
lib/json/objects.rb

Instance Method Summary collapse

Instance Method Details

#to_jsonObject

all strings in json need to have double quotes around them, treat random objects as strings



29
30
31
# File 'lib/json/objects.rb', line 29

def to_json #all strings in json need to have double quotes around them, treat random objects as strings
  String.to_json(to_s)
end