bind

The query with each placeholder replaced by the literal of its value in values, which has a value for every one of parameters and for nothing else; a JsonQueryValue.Json value has no literal form. Each of these is an IllegalArgumentException. A value that makes the query invalid, such as a string with an unpaired surrogate, a number whose exponent is out of range or a string that takes the query beyond its length limit, throws InvalidJsonPathException naming the offset in the bound text, as compiling that text would.


fun bind(vararg values: Pair<String, JsonQueryValue>): JsonPath(source)

bind with the values given as pairs: bind("id" to JsonQueryValue.Str(id)).