You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@hop.apache.org by mc...@apache.org on 2023/11/04 15:10:27 UTC
(hop) branch master updated: Update jsoninput.adoc
This is an automated email from the ASF dual-hosted git repository.
mcasters pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/hop.git
The following commit(s) were added to refs/heads/master by this push:
new ce5684918f Update jsoninput.adoc
new 8427ee799d Merge pull request #3343 from Mattang-Dan/patch-31
ce5684918f is described below
commit ce5684918fa910b583321f0102716e290f3c91a0
Author: Mattang-Dan <10...@users.noreply.github.com>
AuthorDate: Thu Nov 2 11:53:41 2023 -0700
Update jsoninput.adoc
---
.../modules/ROOT/pages/pipeline/transforms/jsoninput.adoc | 13 +++++++++----
1 file changed, 9 insertions(+), 4 deletions(-)
diff --git a/docs/hop-user-manual/modules/ROOT/pages/pipeline/transforms/jsoninput.adoc b/docs/hop-user-manual/modules/ROOT/pages/pipeline/transforms/jsoninput.adoc
index 2aab888546..924d0b8edd 100644
--- a/docs/hop-user-manual/modules/ROOT/pages/pipeline/transforms/jsoninput.adoc
+++ b/docs/hop-user-manual/modules/ROOT/pages/pipeline/transforms/jsoninput.adoc
@@ -24,11 +24,17 @@ under the License.
|===
|
== Description
-The JSON input transform reads data from JSON structures, files, or incoming fields using a JSONPath expression to extract data and output rows. For example, connect a REST client to a JSON input transform to read JSON into data rows.
+The JSON input transform reads data from JSON structures, files, or incoming fields using a JSONPath expression to extract data and output rows.
-JSONPath expressions can use either dot notation or square bracket notation.
-To read nested JSON elements, use a sequence of JSON Input transforms, where the first JSON Input transform reads the nested element as a String field. In the second JSON Input transform, use the `Source is from a previous transform` option to select the String field you used in the first JSON Input transform to read the information from the nested element.
+== TIPS
+* JSONPath expressions can use either dot notation or square bracket notation.
+* You can pass a REST request result field onwards without selecting any fields on the Fields tab if needed.
+
+== Examples
+* For example, connect a REST client to a JSON input transform to read JSON into data rows.
+* To read nested JSON elements, use a sequence of JSON Input transforms, where the first JSON Input transform reads the nested element as a String field. In the second JSON Input transform, use the `Source is from a previous transform` option to select the String field you used in the first JSON Input transform to read the information from the nested element.
+
Check the `json-input-nested-elements.hpl` sample in the Samples project for an example.
@@ -38,7 +44,6 @@ Check the `json-input-nested-elements.hpl` sample in the Samples project for an
* json-input-nested-elements.hpl
-
|
== Supported Engines
[%noheader,cols="2,1a",frame=none, role="table-supported-engines"]