Configurable compression + Json encoding