From acff52ebc5ab98e38f5b115696f7c32ce8db1815 Mon Sep 17 00:00:00 2001 From: kelseiv <47797004+kelseiv@users.noreply.github.com> Date: Thu, 7 Jul 2022 10:41:25 -0700 Subject: [PATCH] Update content/resources/how-to-guides/reduce-to-construct-JSON.md --- content/resources/how-to-guides/reduce-to-construct-JSON.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/content/resources/how-to-guides/reduce-to-construct-JSON.md b/content/resources/how-to-guides/reduce-to-construct-JSON.md index 86f486b50..6eb25710e 100644 --- a/content/resources/how-to-guides/reduce-to-construct-JSON.md +++ b/content/resources/how-to-guides/reduce-to-construct-JSON.md @@ -13,7 +13,7 @@ Use the [reduce()](/flux/v0.x/stdlib/universe/reduce/) function to create a JSON 1. Import both the [array](/flux/v0.x/stdlib/array/) package to query data and contruct table(s), and the [http package](/flux/v0.x/stdlib/http/) to transfer JSON over http. 2. Use `array.from()` to query data and construct a table. Or, use another method [to query data with Flux](/influxdb/v2.3/query-data/flux/). -3. Use the `reduce()` function to start constructing a JSON. The output of reduce is stored in the result `output of reduce`. This table looks like: +3. Use the `reduce()` function to construct a JSON object, and then use `yield()` to store the output of reduce. This table looks like: | field | tag | | :-------------------- | :----------------------------- |