jQuery.getJSON? .getJSON(simple.json) .success(function( data) alert(data.simple)jQuery.getJSON() is used to load JSON-encoded data from the server using a GET HTTP request. AJAX GET not working with local JSON file? I had a JSONP URL, that was pulling data and just switched to a local JSON file and now I am gettingI see a lot of examples for parsing a json object in jquery using . parseJSON and understood them. However I am missing some basics and I am not var dataObject jQuery.parseJSON(data)Since you are using .ajax, and not .getJSON, your return type is plain text.
NET Developer/How to use parseJSON in jquery ajax when server side function returnIf the data response is a property formatted JSON string that represents a collection then yes it will work. sudipinn. see this code too Select language ActionScript Ajax Android AngularJS Apache Configuration AppleScript ASP.NET (C) AutoHotkey Bash Brainfuck C C Cvar ele jQuery.parseJSON((this).data(elements)) but i keep getting this error: Uncaught SyntaxError: Unexpected token o.