import json


def toJson(jsonString):
	"""
	Takes json or array as a string and returns it as json so it can be parsed in loop.
	Example usage: {{ value|toJson }}
	Return: {json} 
	"""
	return json.loads(jsonString)