<%= params[:callback]+'(' if params[:callback] -%>{"answer" : <%= (@pi ? @pi.total_amount : 'null') %>, "item" : <%= (@pi ? ('"'+@item.label+'"').html_safe : 'null') %>}<%= ');' if params[:callback] -%>

<%= params[:callback]+'(' if params[:callback] -%>{"answer" : <%= (@pi ? @pi.total_amount : 'null') %>, "item" : <%= (@pi ? ('"'+@item.label+'"').html_safe : 'null') %>, "item_uid" : <%= (@pi ? ('"'+@item.uid+'"').html_safe : 'null') %>}<%= ');' if params[:callback] -%>

Add item UID to JSON API.
Add item UID to JSON API.
