Class: Leadspend::Parser::JSONParser
- Inherits:
-
Object
- Object
- Leadspend::Parser::JSONParser
- Defined in:
- lib/leadspend/parser/json_parser.rb
Class Method Summary collapse
Class Method Details
.decode(string) ⇒ Object
7 8 9 |
# File 'lib/leadspend/parser/json_parser.rb', line 7 def self.decode(string) JSON.parse(string) end |
.encode(object) ⇒ Object
4 5 6 |
# File 'lib/leadspend/parser/json_parser.rb', line 4 def self.encode(object) JSON.generate(object) end |