Module: Pincushion::Plugins::JsonSerializer::PincushionMethods

Defined in:
lib/pincushion/plugins/json_serializer.rb

Instance Method Summary collapse

Instance Method Details

#from_json(json, *args) ⇒ Object



7
8
9
10
11
# File 'lib/pincushion/plugins/json_serializer.rb', line 7

def from_json(json, *args)
  args << {} unless args.last.is_a?(Hash)
  args.last.merge!(OPTS)
  from_rows(JSON.parse(json, *args))
end