add compressed json writer