json_decode

The json_decode filter takes one valid JSON string argument and decodes it into a PHP array data structure.

{% set data = '{"one": "Foo", "two": "Bar"}'|json_decode %}