Moved json dependent code to tests only and marked json dependency as test
scope.