in lib/json.go [90:161]
func (l jsonLib) CompileOptions() []cel.EnvOption {
return []cel.EnvOption{
cel.Function("encode_json",
cel.MemberOverload(
"dyn_encode_json",
[]*cel.Type{cel.DynType},
cel.StringType,
cel.UnaryBinding(catch(encodeJSON)),
),
cel.Overload(
"encode_json_dyn",
[]*cel.Type{cel.DynType},
cel.StringType,
cel.UnaryBinding(catch(encodeJSON)),
),
),
cel.Function("decode_json",
cel.MemberOverload(
"string_decode_json",
[]*cel.Type{cel.StringType},
cel.DynType,
cel.UnaryBinding(catch(l.decodeJSON)),
),
cel.Overload(
"decode_json_string",
[]*cel.Type{cel.StringType},
cel.DynType,
cel.UnaryBinding(catch(l.decodeJSON)),
),
cel.MemberOverload(
"bytes_decode_json",
[]*cel.Type{cel.BytesType},
cel.DynType,
cel.UnaryBinding(catch(l.decodeJSON)),
),
cel.Overload(
"decode_json_bytes",
[]*cel.Type{cel.BytesType},
cel.DynType,
cel.UnaryBinding(catch(l.decodeJSON)),
),
),
cel.Function("decode_json_stream",
cel.MemberOverload(
"string_decode_json_stream",
[]*cel.Type{cel.StringType},
cel.DynType,
cel.UnaryBinding(catch(l.decodeJSONStream)),
),
cel.Overload(
"decode_json_stream_string",
[]*cel.Type{cel.StringType},
cel.DynType,
cel.UnaryBinding(catch(l.decodeJSONStream)),
),
cel.MemberOverload(
"bytes_decode_json_stream",
[]*cel.Type{cel.BytesType},
cel.DynType,
cel.UnaryBinding(catch(l.decodeJSONStream)),
),
cel.Overload(
"decode_json_stream_bytes",
[]*cel.Type{cel.BytesType},
cel.DynType,
cel.UnaryBinding(catch(l.decodeJSONStream)),
),
),
}
}