ramespark / Database-Quotes-JSON

JSON file with more than 1500+ famous quotes.

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Database Quotes JSON

JSON file with more than 1500+ famous quotes

Below there are some examples, using jQuery and ES6, on how to work with this file

// returns an array of all quotes with 12 words maximum
var filePath = "quotes.json";
$.getJSON(filePath)
  .done(
    data => data.filter(
      object => object.quoteText.split(" ").length <= 12
    )
  )

// returns an array of all quotes by Buddha
var filePath = "quotes.json";
$.getJSON(filePath)
  .done(
    data => data.filter(
      object => object.quoteAuthor === "Buddha"
    )
  )

Donation

I'm hopeful this repo can help you! If so, please consider to offer me a coffee :)

paypal

About

JSON file with more than 1500+ famous quotes.