alaoweb / 2020.alaoweb.org

Virtual Conference for ALAO
https://2020.alaoweb.org/
MIT License
1 stars 0 forks source link

Base64 encode json #276

Closed kenirwin closed 3 years ago

kenirwin commented 3 years ago

to test: use this bogus data:

[
  {
    "description": "The Jay Ladd Distinguished Service Award recognizes an individual who has (1) been an Academic Library Association of Ohio member for at least 5 years (2) promoted academic libraries and librarianship on his or her own campus and within the state (3) provided sustained leadership in the promotion of Academic Library Association of Ohio, e.g., committee service, interest group chair, position on the Executive Board.",
    "infoUrl": "https://www.alaoweb.org/aboutalao/jay-ladd-award.php",
    "nominationForm": "https://docs.google.com/forms/d/e/1FAIpQLSd1vSgpeX2NohYWQAI5-m9Uf-DTdkcOjr0HzWgUvEN5jucTDA/viewform?usp=sf_link",
    "title": "Jay Ladd Distinguished Service Award",
    "type": "award",
    "winners": [
      {
        "citation": "Alisa's pretty fabulous and hard-working, but so often behind the scenes it's easy to not notice how great she is.",
        "institution": "Wittenberg University",
        "name": "Alisa Mizikar",
        "photo": "alisa_mizikar.jpg"
      }
    ]
  },
  {
    "description": "The Kathryn L. Venditti Mentoring Award is given annually to an academic librarian who has demonstrated excellence as a mentor to a librarian, library worker, or library science student. Through this award ALAO strives to foster a culture of mentoring within the Association.",
    "infoUrl": "https://www.alaoweb.org/Venditti-Award",
    "nominationForm": "https://docs.google.com/forms/d/e/1FAIpQLSdqPFBPYeRx06WbmXEqT4SEYo2yfy8YlPwGGWxjX4LQLJj_iA/viewform?usp=sf_link",
    "title": "Kathryn Venditti Mentoring Award",
    "type": "award",
    "winners": [
      {
        "citation": "Sue's great, and she can cut a rug like nobody's business",
        "institution": "Wright State University",
        "name": "Sue Polanka",
        "photo": ""
      }
    ]
  }
]

using in real life

If you already have a YML file with the data you want to encode, you may have to go through a few hoops:

  1. http://www.yamllint.com/ -- lint it up to make it the cleanest yml possible
  2. http://nodeca.github.io/js-yaml/ -- convert it to json
  3. https://www.charset.org/utf8-to-latin-converter - utf8 to latin1 because base64 doesn't like utf8