Fixed warning in JSON adapter