edit get JSON method