json: fix warning: warning: ‘ch’ may be...