The answer from this question relating to JSONP does work as of. If there is a ? at the end of a url during .getJSON request it recognizes as a  JSONP. 
However in my case it is not working. 
I have a url lets say (sanjokgrg.com/aboutme)which displays the whatever data queried from the about table, I also added an extra feature where it looks for json=true in the URL which converts the result into json this way print json_encode($data); in php. So sanjokgrg.com/aboutme displays the normal data while sanjokgrg.com/aboutme?json=true displays the json data but getJson does not recognize sanjokgrg.com/aboutme?json=true and I tried a placeholder api https://jsonplaceholder.typicode.com/comments and it works only my ?json=true not working
