Sha256: d9cb8092db3676fe026ac9d5c44a05042ad1fbb6ba3c7e35856cde58f1547f91

Contents?: true

Size: 275 Bytes

Versions: 22

Compression:

Stored size: 275 Bytes

Contents

class JSONParser
  def self.parse_from_url(url)
    data = DataParser.parse(url)
    
    error_ptr = Pointer.new(:object)
    json = NSJSONSerialization.JSONObjectWithData(data, options:0, error:error_ptr)
    unless json
      raise error_ptr[0]
    end
    json
  end
end

Version data entries

22 entries across 21 versions & 2 rubygems

Version Path
teacup-2.1.13 samples/osx/Tweets/app/json_parser.rb
teacup-2.1.12 samples/osx/Tweets/app/json_parser.rb
teacup-2.1.11 samples/osx/Tweets/app/json_parser.rb
teacup-2.1.10 samples/osx/Tweets/app/json_parser.rb
teacup-2.1.9 samples/osx/Tweets/app/json_parser.rb
teacup-2.1.8 samples/osx/Tweets/app/json_parser.rb
teacup-2.1.7 samples/osx/Tweets/app/json_parser.rb
teacup-2.1.6 samples/osx/Tweets/app/json_parser.rb
teacup-2.1.5 samples/osx/Tweets/app/json_parser.rb
teacup-2.1.4 samples/osx/Tweets/app/json_parser.rb
teacup-2.1.3 samples/osx/Tweets/app/json_parser.rb
teacup-2.1.2 samples/osx/Tweets/app/json_parser.rb
teacup-2.1.1 samples/osx/Tweets/app/json_parser.rb
teacup-2.1.0 samples/osx/Tweets/app/json_parser.rb
teacup-2.0.6 samples/osx/Tweets/app/json_parser.rb
teacup-2.0.5 samples/osx/Tweets/app/json_parser.rb
teacup-2.0.4 samples/osx/Tweets/app/json_parser.rb
teacup-2.0.3 samples/osx/Tweets/app/json_parser.rb
teacup-2.0.2 samples/Tweets/app/json_parser.rb
teacup-2.0.0 samples/Tweets/app/json_parser.rb