Module: CitySDK
- Defined in:
- lib/citysdk.rb,
lib/citysdk/api.rb,
lib/citysdk/util.rb,
lib/citysdk/importer.rb,
lib/citysdk/file_reader.rb
Defined Under Namespace
Classes: API, Exception, FileReader, HostException, Importer
Constant Summary
collapse
- VERSION =
"0.1.1.9"
Class Method Summary
collapse
Class Method Details
.parseJson(jsonstring) ⇒ Object
22
23
24
25
26
27
28
|
# File 'lib/citysdk/util.rb', line 22
def self.parseJson(jsonstring)
begin
return JSON.parse(jsonstring,{:symbolize_names => true})
rescue Exception => e
raise CitySDK::Exception.new(e.message)
end
end
|