Miva - JSON API Helper
<mvt:assign name="l.header" value="miva_output_header( 'Content-type', 'application/json' )" />
<mvt:assign name="g.json_customer" value="g.customer" />
<mvt:assign name="g.json_customer:password" value="''" />
{
"page": <mvt:do file="g.Module_JSON" name="l.null" value="JSON_Output( l.settings:page )" />,
"g": {
"ui_exception": "&mvtj:global:ui_exception;",
"screen": "&mvtj:global:screen;",
"action": "&mvtj:global:action;",
"basket": <mvt:do file="g.Module_JSON" name="l.null" value="JSON_Output( g.basket )" />,
"customer": <mvt:do file="g.Module_JSON" name="l.null" value="JSON_Output( g.json_customer )" />
},
"messages": <mvt:do file="g.Module_JSON" name="l.null" value="JSON_Output( l.settings:messages )" />,
"product": <mvt:do file="g.Module_JSON" name="l.null" value="JSON_Output( l.settings:product )" />,
"category": <mvt:do file="g.Module_JSON" name="l.null" value="JSON_Output( l.settings:category )" />,
"breadcrumbs": <mvt:do file="g.Module_JSON" name="l.null" value="JSON_Output( l.settings:breadcrumbs )" />,
"basket": <mvt:do file="g.Module_JSON" name="l.null" value="JSON_Output( l.settings:basket )" />,
"global_minibasket": <mvt:do file="g.Module_JSON" name="l.null" value="JSON_Output( l.settings:global_minibasket )" />
}