class ContentHandler(YajlContentHandler):

    def yajl_number(self, ctx, val):
        list_of_numbers.append(float(val))
parser = YajlParser(ContentHandler())
parser.parse(some_file)
Opening A large JSON file in Python