Module: JSONSocket::JsonEncodeDecode
Instance Method Summary collapse
Instance Method Details
#encode_json(object) ⇒ Object
13 14 15 |
# File 'lib/json-socket.rb', line 13 def encode_json(object) return Oj.dump(object) end |
#parse_json(string) ⇒ Object
9 10 11 |
# File 'lib/json-socket.rb', line 9 def parse_json(string) return Oj.load(string) end |