Still screwing around with the JSON functions