def get_values_json(self, lst, list_columns):
result = []<EOL>for item in self.get_values(lst, list_columns):<EOL><INDENT>for key, value in list(item.items()):<EOL><INDENT>if isinstance(value, datetime.datetime) or isinstance(<EOL>value, datetime.date<EOL>):<EOL><INDENT>value = value.isoformat()<EOL>item[key] = value<EOL><DEDENT>if isinstance(value, list):<EOL><INDENT>item[key] = [str(v) for v in value]<EOL><DEDENT><DEDENT>result.append(item)<EOL><DEDENT>return result<EOL>
Converts list of objects from query to JSON