minor fixes on json exercise