evalJson

Overview

Creates a Python-native data structure from the given JSON string. (equivalent to json.loads()))

Parameters

  • json_stringstring – String in JSON format

Example

{% evalJson myjson %}  # "{\"a\": 1}" => {'a': 1}