json editor and input fixes