HELP! "json is not a function" error message in console log

HELP! "json is not a function" error message in console log
0

#1

I’m in the middle of my Wikipedia Viewer assignment(not done with it yet-I’m currently trying to get any JSON data from Wikipedia and see if it works) and I keep getting an error message in the console log that says

"jQuery.Deferred exception: $.json is not a function" "TypeError: $.json is not a function
    at HTMLDocument.<anonymous> (pen.js:94:5)
    at j (https://cdnjs.cloudflare.com/ajax/libs/jquery/3.2.1/jquery.min.js:2:29999)
    at k (https://cdnjs.cloudflare.com/ajax/libs/jquery/3.2.1/jquery.min.js:2:30313)" undefined

and I don’t have a clue what I did wrong. Need help!!!

This is the Codepen link to my project

+would be really thankful if anyone could tell me what “at j” and “at k” means!!


#2

Looks like you no longer have the error you posted about originally. However, you are having a CORS issue. You can take a look at the following forum thread to assist you.


#3

Oh it is!!

Thank you!

I’m still struggling to get the JSON data from the API. Currently, I coded my jQuery so that the text that says “Result Test” should be changed to data from JSON object when something is submitted in the search box, but it’s not working!!

Am I using the .ajax function the wrong way, or do you see any other problems? Thanks!!!


#4

Like I said in the previous post, you have a different error showing in the console (Ctrl+Shft+J in Chrome). Read the article for suggestions about how to solve it.