added getjson function and git ignore