avoid useless json-decoding and json-encoding of rawkeys

rawkeys values should be kept as-is (raw) and passed to the query.