Method: JSONMapper::ClassMethods#parse_collection

Defined in:
lib/json_mapper.rb

#parse_collection(data, options = {}) ⇒ Object



71
72
73
74
75
76
77
# File 'lib/json_mapper.rb', line 71

def parse_collection(data, options = {})

  return [] if data.nil? || data == ""
  json = get_json_structure(data, options)
  parse_json_collection(json)

end