JavaScript is disabled!

{json} 1.0

This is not the latest version of this extension!

{json file="config.json"}

The Smarty {json} function reads JSON data from a file, decodes it and assigns it to a Smarty template variable.

For more information, see the documentation on the latest version of this extension.

Downloads

function.json.php (2.31kB)

Versions

  • 1.0.1 (latest)
    No more type checking for the debug and obj2obj parameters' values, as Smarty doesn't work with true booleans. All truthy values will now pass.
  • 1.0