Make scanner definition only for json