module Tmdb::Utils

Public Instance Methods

parse_json(string) click to toggle source
# File lib/tmdb/utils.rb, line 3
def parse_json(string)
  begin
    JSON.parse(string)
  rescue JSON::ParserError
    return {}
  end
end