Warning: unlink(./data/secure/tokens/42b02da07e9f8016af41034dd8eab9e8188f60dd359b5b363ef2d8d4a102bb236e20e4e6badabb9fafaf7977c27152c4e7175a3e347829b03f79383d014e45a0.token): No such file or directory in /home/sigesthaxo/snippetvamp/assets/php/class/Helium_secure_class.php on line 865
SnippetVamp - open
#key - Parser du Json
function parseJson(){
	//Start by calling the json object, I will be using a 
        //file from my own site for the tutorial 
	//Then we declare a callback function to process the data
	$.getJSON('hcj.json',getPosts);
 
	//The process function, I am going to get the title, 
        //url and excerpt for 5 latest posts
	function getPosts(data){
 
		//Start a for loop with a limit of 5 
		for(var i = 0; i < 5; i++){
			//Build a template string of 
                        //the post title, url and excerpt
			var strPost = '

' + data.posts[i].title + '

' + '

' + data.posts[i].excerpt + '

' + 'Read >'; //Append the body with the string $('body').append(strPost); } } } //Fire off the function in your document ready $(document).ready(function(){ parseJson(); });