Skip to content

Instantly share code, notes, and snippets.

@crtr0
Created December 3, 2012 20:54
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save crtr0/4197945 to your computer and use it in GitHub Desktop.
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

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