Add in guard to check for presence of json library, also skip json tests if json lib not available