monkeywithoutthee / Database-Quotes-JSON

JSON file with more than 5000+ famous quotes.

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

#Database Quotes JSON ##JSON file with more than 5000+ famous quotes.

###Some example on how to work on this JSON quotes file

//return array of all quotes with 12 words max
var filePath = "quotes.js";
$.getJSON(filePath).done(function (data) {
	return data.filter(function (o) {
		return o.quoteText.split(" ").length <= 12;
	});
});

//return array of all quotes of Buddha
var filePath = "quotes.js";
	$.getJSON(filePath).done(function (data) {
		return data.filter(function (o) {
			return o.quoteAuthor === "Buddha";
		});
	});
}

About

JSON file with more than 5000+ famous quotes.