Djsopnet: make hashes a JSON serializable type