def getParamsParse(self):
        """
        Check the schematic object to see if arguments from Tornado can be lists or dictionaries
        """
        #types = [DictType, GeoPointType, ListType, ModelType]
        #fieldkeys = self.fields.keys()

        j = JSONSerializer() 
        if 'bulk' in self.arguments:
            params = tornado.escape.to_unicode(self.arguments['bulk'][0])
            params = tornado.escape.json_decode(params)
            self.arguments['bulk'] = params
        else:
            for k,v in self.arguments.items():
                self.arguments =  j.deserialize(k)
                break

        if len(self.args):
            self.arguments['_id'] = self.args[0]

        return self.arguments
dataset/ETHPy150Open tgonzales/mingus/mingus/resources.py/ModelParams.getParamsParse/original