Module: ASS::JSON
- Defined in:
- lib/ass/serializers.rb
Class Method Summary collapse
Class Method Details
.dump(obj) ⇒ Object
8 9 10 |
# File 'lib/ass/serializers.rb', line 8 def self.dump(obj) obj.to_json end |
.load(raw) ⇒ Object
4 5 6 |
# File 'lib/ass/serializers.rb', line 4 def self.load(raw) JSON.parse(raw) end |