Fix fetchJSON and readJSON examples