{"action":"created","comment":{"url":"https://api.github.com/repos/FreeCodeCamp/FreeCodeCamp/pulls/comments/43540744","id":43540744,"diff_hunk":"@@ -102,55 +101,55 @@\n       \"title\": \"Get JSON with the jQuery getJSON Method\",\n       \"description\": [\n         \"You can also request data from an external source. This is where APIs come into play.\",\n-        \"Remember that APIs - or Application Interfaces - are tools that computers use to communicate with one another.\",\n+        \"Remember that APIs - or Application Programming Interfaces - are tools that computers use to communicate with one another.\",\n         \"Most web APIs transfer data in a format called JSON. JSON stands for JavaScript Object Notation.\",\n         \"You've already been using JSON whenever you create a JavaScript object. JSON is nothing more than object properties and their current values, sandwiched between a <code>{</code> and a <code>}</code>.\",\n         \"These properties and their values are often referred to as \\\"key-value pairs\\\".\",\n         \"Let's get the JSON from Free Code Camp's Cat Photo API.\",\n         \"Here's the code you can put in your click event to do this:\",\n-        \"<code>&thinsp;&thinsp;$.getJSON(\\\"/json/cats.json?callback=\\\", function( json ) {</code>\",\n-        \"<code>&thinsp;&thinsp;&thinsp;&thinsp;$(\\\".message\\\").html(JSON.stringify(json))</code>\",\n+        \"<code>&thinsp;&thinsp;$.getJSON(\\\"/json/cats.json\\\", function(json) {</code>\",\n+        \"<code>&thinsp;&thinsp;&thinsp;&thinsp;$(\\\".message\\\").html(JSON.stringify(json));</code>\",\n         \"<code>&thinsp;&thinsp;});</code>\",\n         \"Once you've added this, click the \\\"Get Message\\\" button. Your Ajax function will replace the \\\"The message will go here\\\" text with the raw JSON output from the Free Code Camp Cat Photo API.\"\n       ],\n       \"tests\": [\n         \"assert(editor.match(/\\\\$\\\\s*?\\\\(\\\\s*?(\\\\\\\"|\\\\')\\\\#getMessage(\\\\\\\"|\\\\')\\\\s*?\\\\)\\\\s*?\\\\.\\\\s*?on\\\\s*?\\\\(\\\\s*?(\\\\\\\"|\\\\')click(\\\\\\\"|\\\\')\\\\s*?\\\\,\\\\s*?function\\\\s*?\\\\(\\\\s*?\\\\)\\\\s*?\\\\{/gi), 'You should have a click handler on the getMessage button to trigger the AJAX request.')\",\n-        \"assert(editor.match(/\\\\s*?\\\\}\\\\s*?\\\\)\\\\s*?\\\\;/gi), 'You should have at least on closing set of brackets and parenthesis.')\",\n+        \"assert(editor.match(/\\\\s*?\\\\}\\\\s*?\\\\)\\\\s*?\\\\;/gi), 'You should have at least one closing set of brackets and parenthesis.')\",\n         \"assert(editor.match(/\\\\s*?\\\\}\\\\s*?\\\\)\\\\s*?\\\\;/gi) && editor.match(/\\\\,\\\\s*?function\\\\s*?\\\\(\\\\s*?\\\\w*?\\\\s*?\\\\)\\\\s*?\\\\{/gi) && editor.match(/\\\\s*?\\\\}\\\\s*?\\\\)\\\\s*?\\\\;/gi).length === editor.match(/\\\\s*?function\\\\s*?\\\\(\\\\s*?\\\\w*?\\\\s*?\\\\)\\\\s*?\\\\{/gi).length, 'Each callback function should have a closing set of brackets and parenthesis.')\",\n-        \"assert(editor.match(/\\\\$\\\\s*?\\\\.\\\\s*?getJSON\\\\s*?\\\\(\\\\s*?\\\"\\\\\\/json\\\\\\/cats\\\\.json\\\\?callback\\\\=\\\"\\\\s*?\\\\,\\\\s*?function\\\\s*?\\\\(\\\\s*?json\\\\s*?\\\\)\\\\s*?\\\\{/gi), 'You should be making use of the getJSON method given in the description to load data from the json file.')\",\n-        \"assert(editor.match(/\\\\$\\\\s*?\\\\(\\\\s*?\\\\\\\"\\\\.message\\\\\\\"\\\\s*?\\\\)\\\\s*?\\\\.\\\\s*?html\\\\s*?\\\\(\\\\s*?JSON\\\\s*?\\\\.\\\\s*?stringify\\\\s*?\\\\(\\\\s*?json\\\\s*?\\\\)\\\\s*?\\\\)/gi), 'Don\\\\'t forget to make the <code>.html</code> change the contents of the message box so that it contains the result of the getJSON.')\"\n+        \"assert(editor.match(/\\\\$\\\\s*?\\\\.\\\\s*?getJSON\\\\s*?\\\\(\\\\s*?(\\\\\\\"|\\\\')\\\\\\/json\\\\\\/cats\\\\.json\\\"\\\\s*?\\\\,\\\\s*?function\\\\s*?\\\\(\\\\s*?json\\\\s*?\\\\)\\\\s*?\\\\{/gi), 'You should be making use of the getJSON method given in the description to load data from the json file.')\",","path":"seed/challenges/json-apis-and-ajax.json","position":118,"original_position":118,"commit_id":"8ecde257cfd965d38315fc1ad6be07c9e0269f6d","original_commit_id":"8ecde257cfd965d38315fc1ad6be07c9e0269f6d","user":{"login":"ltegman","id":1381313,"avatar_url":"https://avatars.githubusercontent.com/u/1381313?v=3","gravatar_id":"","url":"https://api.github.com/users/ltegman","html_url":"https://github.com/ltegman","followers_url":"https://api.github.com/users/ltegman/followers","following_url":"https://api.github.com/users/ltegman/following{/other_user}","gists_url":"https://api.github.com/users/ltegman/gists{/gist_id}","starred_url":"https://api.github.com/users/ltegman/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ltegman/subscriptions","organizations_url":"https://api.github.com/users/ltegman/orgs","repos_url":"https://api.github.com/users/ltegman/repos","events_url":"https://api.github.com/users/ltegman/events{/privacy}","received_events_url":"https://api.github.com/users/ltegman/received_events","type":"User","site_admin":false},"body":"Good catch, I knew I'd miss something. Working on it now and will update the PR soon.","created_at":"2015-10-30T19:04:47Z","updated_at":"2015-10-30T19:04:47Z","html_url":"https://github.com/FreeCodeCamp/FreeCodeCamp/pull/4022#discussion_r43540744","pull_request_url":"https://api.github.com/repos/FreeCodeCamp/FreeCodeCamp/pulls/4022","_links":{"self":{"href":"https://api.github.com/repos/FreeCodeCamp/FreeCodeCamp/pulls/comments/43540744"},"html":{"href":"https://github.com/FreeCodeCamp/FreeCodeCamp/pull/4022#discussion_r43540744"},"pull_request":{"href":"https://api.github.com/repos/FreeCodeCamp/FreeCodeCamp/pulls/4022"}}},"pull_request":{"url":"https://api.github.com/repos/FreeCodeCamp/FreeCodeCamp/pulls/4022","id":49231521,"html_url":"https://github.com/FreeCodeCamp/FreeCodeCamp/pull/4022","diff_url":"https://github.com/FreeCodeCamp/FreeCodeCamp/pull/4022.diff","patch_url":"https://github.com/FreeCodeCamp/FreeCodeCamp/pull/4022.patch","issue_url":"https://api.github.com/repos/FreeCodeCamp/FreeCodeCamp/issues/4022","number":4022,"state":"open","locked":false,"title":"JSON/API Lesson Cleanup","user":{"login":"ltegman","id":1381313,"avatar_url":"https://avatars.githubusercontent.com/u/1381313?v=3","gravatar_id":"","url":"https://api.github.com/users/ltegman","html_url":"https://github.com/ltegman","followers_url":"https://api.github.com/users/ltegman/followers","following_url":"https://api.github.com/users/ltegman/following{/other_user}","gists_url":"https://api.github.com/users/ltegman/gists{/gist_id}","starred_url":"https://api.github.com/users/ltegman/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ltegman/subscriptions","organizations_url":"https://api.github.com/users/ltegman/orgs","repos_url":"https://api.github.com/users/ltegman/repos","events_url":"https://api.github.com/users/ltegman/events{/privacy}","received_events_url":"https://api.github.com/users/ltegman/received_events","type":"User","site_admin":false},"body":"+ Fixes Convert JSON to HTML lesson (Closes #4016)\r\n+ Add Formatting to Geolocation lesson output (Closes #4010)\r\n+ Fixes Render Images lesson\r\n+ Removes unnecessary `?callback=` from JSON challenges. (Closes #3972)\r\n+ Lots of other formatting and consistency changes.\r\n+ Also closes #3962 and closes #3969","created_at":"2015-10-30T04:58:08Z","updated_at":"2015-10-30T19:04:47Z","closed_at":null,"merged_at":null,"merge_commit_sha":"935666f0c72501a88a598aa2806b3024cd0269de","assignee":null,"milestone":null,"commits_url":"https://api.github.com/repos/FreeCodeCamp/FreeCodeCamp/pulls/4022/commits","review_comments_url":"https://api.github.com/repos/FreeCodeCamp/FreeCodeCamp/pulls/4022/comments","review_comment_url":"https://api.github.com/repos/FreeCodeCamp/FreeCodeCamp/pulls/comments{/number}","comments_url":"https://api.github.com/repos/FreeCodeCamp/FreeCodeCamp/issues/4022/comments","statuses_url":"https://api.github.com/repos/FreeCodeCamp/FreeCodeCamp/statuses/8ecde257cfd965d38315fc1ad6be07c9e0269f6d","head":{"label":"ltegman:fix/json-api-lesson-cleanup","ref":"fix/json-api-lesson-cleanup","sha":"8ecde257cfd965d38315fc1ad6be07c9e0269f6d","user":{"login":"ltegman","id":1381313,"avatar_url":"https://avatars.githubusercontent.com/u/1381313?v=3","gravatar_id":"","url":"https://api.github.com/users/ltegman","html_url":"https://github.com/ltegman","followers_url":"https://api.github.com/users/ltegman/followers","following_url":"https://api.github.com/users/ltegman/following{/other_user}","gists_url":"https://api.github.com/users/ltegman/gists{/gist_id}","starred_url":"https://api.github.com/users/ltegman/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ltegman/subscriptions","organizations_url":"https://api.github.com/users/ltegman/orgs","repos_url":"https://api.github.com/users/ltegman/repos","events_url":"https://api.github.com/users/ltegman/events{/privacy}","received_events_url":"https://api.github.com/users/ltegman/received_events","type":"User","site_admin":false},"repo":{"id":43607823,"name":"FreeCodeCamp","full_name":"ltegman/FreeCodeCamp","owner":{"login":"ltegman","id":1381313,"avatar_url":"https://avatars.githubusercontent.com/u/1381313?v=3","gravatar_id":"","url":"https://api.github.com/users/ltegman","html_url":"https://github.com/ltegman","followers_url":"https://api.github.com/users/ltegman/followers","following_url":"https://api.github.com/users/ltegman/following{/other_user}","gists_url":"https://api.github.com/users/ltegman/gists{/gist_id}","starred_url":"https://api.github.com/users/ltegman/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ltegman/subscriptions","organizations_url":"https://api.github.com/users/ltegman/orgs","repos_url":"https://api.github.com/users/ltegman/repos","events_url":"https://api.github.com/users/ltegman/events{/privacy}","received_events_url":"https://api.github.com/users/ltegman/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/ltegman/FreeCodeCamp","description":"The http://FreeCodeCamp.com open-source codebase and curriculum. Learn to code and help nonprofits.","fork":true,"url":"https://api.github.com/repos/ltegman/FreeCodeCamp","forks_url":"https://api.github.com/repos/ltegman/FreeCodeCamp/forks","keys_url":"https://api.github.com/repos/ltegman/FreeCodeCamp/keys{/key_id}","collaborators_url":"https://api.github.com/repos/ltegman/FreeCodeCamp/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/ltegman/FreeCodeCamp/teams","hooks_url":"https://api.github.com/repos/ltegman/FreeCodeCamp/hooks","issue_events_url":"https://api.github.com/repos/ltegman/FreeCodeCamp/issues/events{/number}","events_url":"https://api.github.com/repos/ltegman/FreeCodeCamp/events","assignees_url":"https://api.github.com/repos/ltegman/FreeCodeCamp/assignees{/user}","branches_url":"https://api.github.com/repos/ltegman/FreeCodeCamp/branches{/branch}","tags_url":"https://api.github.com/repos/ltegman/FreeCodeCamp/tags","blobs_url":"https://api.github.com/repos/ltegman/FreeCodeCamp/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/ltegman/FreeCodeCamp/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/ltegman/FreeCodeCamp/git/refs{/sha}","trees_url":"https://api.github.com/repos/ltegman/FreeCodeCamp/git/trees{/sha}","statuses_url":"https://api.github.com/repos/ltegman/FreeCodeCamp/statuses/{sha}","languages_url":"https://api.github.com/repos/ltegman/FreeCodeCamp/languages","stargazers_url":"https://api.github.com/repos/ltegman/FreeCodeCamp/stargazers","contributors_url":"https://api.github.com/repos/ltegman/FreeCodeCamp/contributors","subscribers_url":"https://api.github.com/repos/ltegman/FreeCodeCamp/subscribers","subscription_url":"https://api.github.com/repos/ltegman/FreeCodeCamp/subscription","commits_url":"https://api.github.com/repos/ltegman/FreeCodeCamp/commits{/sha}","git_commits_url":"https://api.github.com/repos/ltegman/FreeCodeCamp/git/commits{/sha}","comments_url":"https://api.github.com/repos/ltegman/FreeCodeCamp/comments{/number}","issue_comment_url":"https://api.github.com/repos/ltegman/FreeCodeCamp/issues/comments{/number}","contents_url":"https://api.github.com/repos/ltegman/FreeCodeCamp/contents/{+path}","compare_url":"https://api.github.com/repos/ltegman/FreeCodeCamp/compare/{base}...{head}","merges_url":"https://api.github.com/repos/ltegman/FreeCodeCamp/merges","archive_url":"https://api.github.com/repos/ltegman/FreeCodeCamp/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/ltegman/FreeCodeCamp/downloads","issues_url":"https://api.github.com/repos/ltegman/FreeCodeCamp/issues{/number}","pulls_url":"https://api.github.com/repos/ltegman/FreeCodeCamp/pulls{/number}","milestones_url":"https://api.github.com/repos/ltegman/FreeCodeCamp/milestones{/number}","notifications_url":"https://api.github.com/repos/ltegman/FreeCodeCamp/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/ltegman/FreeCodeCamp/labels{/name}","releases_url":"https://api.github.com/repos/ltegman/FreeCodeCamp/releases{/id}","created_at":"2015-10-03T17:35:04Z","updated_at":"2015-10-03T17:35:09Z","pushed_at":"2015-10-30T18:26:57Z","git_url":"git://github.com/ltegman/FreeCodeCamp.git","ssh_url":"git@github.com:ltegman/FreeCodeCamp.git","clone_url":"https://github.com/ltegman/FreeCodeCamp.git","svn_url":"https://github.com/ltegman/FreeCodeCamp","homepage":"","size":18488,"stargazers_count":0,"watchers_count":0,"language":"HTML","has_issues":false,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":0,"mirror_url":null,"open_issues_count":0,"forks":0,"open_issues":0,"watchers":0,"default_branch":"staging"}},"base":{"label":"FreeCodeCamp:staging","ref":"staging","sha":"e7b416cd32d099e9ae2f7141542f2a449211bc04","user":{"login":"FreeCodeCamp","id":9892522,"avatar_url":"https://avatars.githubusercontent.com/u/9892522?v=3","gravatar_id":"","url":"https://api.github.com/users/FreeCodeCamp","html_url":"https://github.com/FreeCodeCamp","followers_url":"https://api.github.com/users/FreeCodeCamp/followers","following_url":"https://api.github.com/users/FreeCodeCamp/following{/other_user}","gists_url":"https://api.github.com/users/FreeCodeCamp/gists{/gist_id}","starred_url":"https://api.github.com/users/FreeCodeCamp/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/FreeCodeCamp/subscriptions","organizations_url":"https://api.github.com/users/FreeCodeCamp/orgs","repos_url":"https://api.github.com/users/FreeCodeCamp/repos","events_url":"https://api.github.com/users/FreeCodeCamp/events{/privacy}","received_events_url":"https://api.github.com/users/FreeCodeCamp/received_events","type":"Organization","site_admin":false},"repo":{"id":28457823,"name":"FreeCodeCamp","full_name":"FreeCodeCamp/FreeCodeCamp","owner":{"login":"FreeCodeCamp","id":9892522,"avatar_url":"https://avatars.githubusercontent.com/u/9892522?v=3","gravatar_id":"","url":"https://api.github.com/users/FreeCodeCamp","html_url":"https://github.com/FreeCodeCamp","followers_url":"https://api.github.com/users/FreeCodeCamp/followers","following_url":"https://api.github.com/users/FreeCodeCamp/following{/other_user}","gists_url":"https://api.github.com/users/FreeCodeCamp/gists{/gist_id}","starred_url":"https://api.github.com/users/FreeCodeCamp/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/FreeCodeCamp/subscriptions","organizations_url":"https://api.github.com/users/FreeCodeCamp/orgs","repos_url":"https://api.github.com/users/FreeCodeCamp/repos","events_url":"https://api.github.com/users/FreeCodeCamp/events{/privacy}","received_events_url":"https://api.github.com/users/FreeCodeCamp/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/FreeCodeCamp/FreeCodeCamp","description":"The http://FreeCodeCamp.com open-source codebase and curriculum. Learn to code and help nonprofits.","fork":false,"url":"https://api.github.com/repos/FreeCodeCamp/FreeCodeCamp","forks_url":"https://api.github.com/repos/FreeCodeCamp/FreeCodeCamp/forks","keys_url":"https://api.github.com/repos/FreeCodeCamp/FreeCodeCamp/keys{/key_id}","collaborators_url":"https://api.github.com/repos/FreeCodeCamp/FreeCodeCamp/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/FreeCodeCamp/FreeCodeCamp/teams","hooks_url":"https://api.github.com/repos/FreeCodeCamp/FreeCodeCamp/hooks","issue_events_url":"https://api.github.com/repos/FreeCodeCamp/FreeCodeCamp/issues/events{/number}","events_url":"https://api.github.com/repos/FreeCodeCamp/FreeCodeCamp/events","assignees_url":"https://api.github.com/repos/FreeCodeCamp/FreeCodeCamp/assignees{/user}","branches_url":"https://api.github.com/repos/FreeCodeCamp/FreeCodeCamp/branches{/branch}","tags_url":"https://api.github.com/repos/FreeCodeCamp/FreeCodeCamp/tags","blobs_url":"https://api.github.com/repos/FreeCodeCamp/FreeCodeCamp/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/FreeCodeCamp/FreeCodeCamp/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/FreeCodeCamp/FreeCodeCamp/git/refs{/sha}","trees_url":"https://api.github.com/repos/FreeCodeCamp/FreeCodeCamp/git/trees{/sha}","statuses_url":"https://api.github.com/repos/FreeCodeCamp/FreeCodeCamp/statuses/{sha}","languages_url":"https://api.github.com/repos/FreeCodeCamp/FreeCodeCamp/languages","stargazers_url":"https://api.github.com/repos/FreeCodeCamp/FreeCodeCamp/stargazers","contributors_url":"https://api.github.com/repos/FreeCodeCamp/FreeCodeCamp/contributors","subscribers_url":"https://api.github.com/repos/FreeCodeCamp/FreeCodeCamp/subscribers","subscription_url":"https://api.github.com/repos/FreeCodeCamp/FreeCodeCamp/subscription","commits_url":"https://api.github.com/repos/FreeCodeCamp/FreeCodeCamp/commits{/sha}","git_commits_url":"https://api.github.com/repos/FreeCodeCamp/FreeCodeCamp/git/commits{/sha}","comments_url":"https://api.github.com/repos/FreeCodeCamp/FreeCodeCamp/comments{/number}","issue_comment_url":"https://api.github.com/repos/FreeCodeCamp/FreeCodeCamp/issues/comments{/number}","contents_url":"https://api.github.com/repos/FreeCodeCamp/FreeCodeCamp/contents/{+path}","compare_url":"https://api.github.com/repos/FreeCodeCamp/FreeCodeCamp/compare/{base}...{head}","merges_url":"https://api.github.com/repos/FreeCodeCamp/FreeCodeCamp/merges","archive_url":"https://api.github.com/repos/FreeCodeCamp/FreeCodeCamp/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/FreeCodeCamp/FreeCodeCamp/downloads","issues_url":"https://api.github.com/repos/FreeCodeCamp/FreeCodeCamp/issues{/number}","pulls_url":"https://api.github.com/repos/FreeCodeCamp/FreeCodeCamp/pulls{/number}","milestones_url":"https://api.github.com/repos/FreeCodeCamp/FreeCodeCamp/milestones{/number}","notifications_url":"https://api.github.com/repos/FreeCodeCamp/FreeCodeCamp/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/FreeCodeCamp/FreeCodeCamp/labels{/name}","releases_url":"https://api.github.com/repos/FreeCodeCamp/FreeCodeCamp/releases{/id}","created_at":"2014-12-24T17:49:19Z","updated_at":"2015-10-30T19:01:50Z","pushed_at":"2015-10-30T19:03:12Z","git_url":"git://github.com/FreeCodeCamp/FreeCodeCamp.git","ssh_url":"git@github.com:FreeCodeCamp/FreeCodeCamp.git","clone_url":"https://github.com/FreeCodeCamp/FreeCodeCamp.git","svn_url":"https://github.com/FreeCodeCamp/FreeCodeCamp","homepage":"","size":36285,"stargazers_count":28190,"watchers_count":28190,"language":"HTML","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":1348,"mirror_url":null,"open_issues_count":212,"forks":1348,"open_issues":212,"watchers":28190,"default_branch":"staging"}},"_links":{"self":{"href":"https://api.github.com/repos/FreeCodeCamp/FreeCodeCamp/pulls/4022"},"html":{"href":"https://github.com/FreeCodeCamp/FreeCodeCamp/pull/4022"},"issue":{"href":"https://api.github.com/repos/FreeCodeCamp/FreeCodeCamp/issues/4022"},"comments":{"href":"https://api.github.com/repos/FreeCodeCamp/FreeCodeCamp/issues/4022/comments"},"review_comments":{"href":"https://api.github.com/repos/FreeCodeCamp/FreeCodeCamp/pulls/4022/comments"},"review_comment":{"href":"https://api.github.com/repos/FreeCodeCamp/FreeCodeCamp/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/FreeCodeCamp/FreeCodeCamp/pulls/4022/commits"},"statuses":{"href":"https://api.github.com/repos/FreeCodeCamp/FreeCodeCamp/statuses/8ecde257cfd965d38315fc1ad6be07c9e0269f6d"}}}}