assuming that json is a name of your json object, you can try this
var thumbnail = json["query"]["pages"]["2180"]["thumbnail"];
// or thumbnail source
var source = json["query"]["pages"]["2180"]["thumbnail"]["source"];
if you have a json string , not an object you will have to parse it at first
var json=JSON.Parse(jsonString);