in lib/functions_framework/legacy_event_converter.rb [41:50]
def read_input_json input, charset
input = input.read if input.respond_to? :read
input.force_encoding charset if charset
content = ::JSON.parse input
content = nil unless content.is_a? ::Hash
content
rescue ::JSON::ParserError
nil
end