implemented getjson member function