JSONEncode encodes a CEL ref.Val to its JSON string representation.
(val ref.Val)
| 333 | |
| 334 | // JSONEncode encodes a CEL ref.Val to its JSON string representation. |
| 335 | func JSONEncode(val ref.Val) (string, error) { |
| 336 | return jsonEncodeValue(val) |
| 337 | } |
| 338 | |
| 339 | // JSONParse parses a JSON string into a dynamic CEL ref.Val using the given type adapter. |
| 340 | // If adapter is nil, types.DefaultTypeAdapter is used. |