Class: DataImp::Parser::Json

Inherits:
Stream show all
Defined in:
lib/data_imp/parser/json.rb

Instance Attribute Summary

Attributes inherited from DataImp::Parser

#filename

Instance Method Summary collapse

Methods inherited from Stream

#process

Methods inherited from DataImp::Parser

find_parser, #initialize, #parse, #process, #process_file

Constructor Details

This class inherits a constructor from DataImp::Parser

Instance Method Details

#process_string(input) ⇒ Object



4
5
6
# File 'lib/data_imp/parser/json.rb', line 4

def process_string input
  JSON.parse(input)
end