[enh] valid json content type
[fix] unused var removed