the json_encode function is now in a separate file that gets included with testCurl

separate inclusion of the json function