Skip to content

Instantly share code, notes, and snippets.

@wilornel
Created April 23, 2012 23:03
Show Gist options
  • Select an option

  • Save wilornel/2474419 to your computer and use it in GitHub Desktop.

Select an option

Save wilornel/2474419 to your computer and use it in GitHub Desktop.
$.ajax({
url: "somefile.php"
}).done(function(result){
firstArray = result.split('~');
var secondArray = [];
$.each(firstArray, function(index, value){
secondArray[index] = decodeURIComponent(value);
var secondArray2 = $.parseJSON(secondArray[index]);
console.log(secondArray2.user);
});
});
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment