remove dependency on json gem