Added a log function to json queries so we can see the amount of JSON API request being made