Forgot to include the most important part - CREDIT to dominictarr for his beautiful JSON.sh script