Query with named parameters and json object