Serializes any HCL data structure (primitive, map, object, list) into a valid JSON string.
json_encode(value: any) -> string
Returns the documented result for the function signature.
endpoint "GET /api/v1/products/{id}" { pipeline { redis "cache_write" { connection = connection.redis.cache command = "SET" key = "product:${ctx.request.path.id}" value = json_encode(steps.find_product.result) ttl = "30m" } } }