Method: GnipApi::Apis::PowerTrack::Stream#parse_json

Defined in:
lib/gnip_api/apis/power_track/stream.rb

#parse_json(json) ⇒ Object



49
50
51
52
53
54
55
# File 'lib/gnip_api/apis/power_track/stream.rb', line 49

def parse_json json
  begin 
    GnipApi::JsonParser.parse json
  rescue GnipApi::Errors::JsonParser::ParseError
    nil
  end
end