module MdiCloudDecoder
  def self.decode(input)
    raw_data = JSON.parse(input)        
    MData.new(raw_data)
  rescue Exception => ex
    puts ex.to_s
    nil
  end 
end
module MdiCloudDecoder
  def self.decode(input)
    raw_data = JSON.parse(input)        
    MData.new(raw_data)
  rescue
    nil
  end 
end
Return null on decode failure
Return null on decode failure
