Modified edit funcs to take json value as args