COMPLETE IMPLEMENTATION: json is compressed, sent, recieved, and parsed