Skip to content

Instantly share code, notes, and snippets.

@JumboLove
Created July 9, 2013 19:22
Show Gist options
  • Select an option

  • Save JumboLove/5960409 to your computer and use it in GitHub Desktop.

Select an option

Save JumboLove/5960409 to your computer and use it in GitHub Desktop.
ISML JSON Template
<isscript>
var data = {};
data.success = pdict.GeneralError == null ? true : false;
data.result = {
lineItemId: pdict.GiftCertificateLineItem.UUID,
amount: pdict.GiftCertificateLineItem.baseValue
};
data.errors = {};
</isscript>
<isprint value="${JSON.stringify( data )}" encoding="off"/>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment