https://mysteryweevil.medium.com/a-comprehensive-guide-to-validating-json-data-in-javascript-13462fa6d73c