Skip to content

Instantly share code, notes, and snippets.

@jafstar
Created April 25, 2012 09:06
Show Gist options
  • Save jafstar/2488370 to your computer and use it in GitHub Desktop.
Save jafstar/2488370 to your computer and use it in GitHub Desktop.
Reverse JSON
//FROM http://developer.appcelerator.com/question/115941/-parsing-xml-in-reverse-order
for (var i = json.length - 1; i >= 0; i--)
{
doSomething(json[i].name, json[i].msg);
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment