working sha1 and JSON