Skip to main content

json_decode

Short description

Decodes a JSON character string. The result can be saved to a local template variable.

Description of this function

json_decode( string $_json  ) :

Examples

{%
	$_array = {"Id":"100","Name":"Couch Red","Price":"400 €"};

	if (array_key_exists("Price", $_array))
	{
		print("Der Artikel ".$_array["Name"]." kostet ".$_array["Price"]);
	}
%}

To top