Class: Object
- Inherits:
- BasicObject
- Defined in:
- lib/json/objects.rb
Instance Method Summary collapse
-
#to_json ⇒ Object
all strings in json need to have double quotes around them, treat random objects as strings.
Instance Method Details
#to_json ⇒ Object
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 |