Skip to content

Instantly share code, notes, and snippets.

@crtr0
Created December 3, 2012 20:54
Show Gist options
  • Select an option

  • Save crtr0/4197945 to your computer and use it in GitHub Desktop.

Select an option

Save crtr0/4197945 to your computer and use it in GitHub Desktop.
Decoding some JSON data in our Mustache template
var data = "{{ voteoptions }}";
var voting_string = data.unescapeHtml();
var voting = JSON.parse(voting_string);
@SonalJain1707
Copy link
Copy Markdown

Hi,

I there any way we can paste json and it converts to mustache template

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment