simplified getjson function