got client to pass json to server and server to parse to hash