created function for getJson getXml getLocal now can call with other functions