change type for json word representation from dict to tuple