Allows for selecting between one of two options for JSON input: JSON Document or File/URL
If selected, The JSON document can come from any string expression, including attribute values and workspace parameters.
If selected, the JSON source can be read from a local file at a specified file path, or from the internet at a specified URL.
This parameter identifies the feature attribute into which the result of the JSON query should be put.
This parameter is the JSON query whose value will be stored in the target attribute.
Each cell in the JSON Query column contains a button that opens a dialog containing the structure of the JSON dataset in a tree form. If the JSONExtractor is set to read from a file or URL, then selecting a value from the tree will populate the parameter with the appropriate query string to turn the selected values into features.
A value in an array can be referred to using its zero-based position in the array (for example, json for the third element).
A value in an object can be referred to using its object key name
All of the values in an array or object can be collectively referred to using a wildcard index
The query used by this transformer can have multiple expressions, which are separated by a '+' operator, as well as string literal values. This allows more complex attribute values to be easily created from the JSON text. For example:
json["name"]["first"] + " " + json["name"]["last"]
If the JSON query cannot be fully evaluated, a message will be logged, and the feature will be output without setting the target attribute.
Editing Transformer Parameters
Using a set of menu options, transformer parameters can be assigned by referencing other elements in the workspace. More advanced functions, such as an advanced editor and an arithmetic editor, are also available in some transformers. To access a menu of these options, click beside the applicable parameter. For more information, see Transformer Parameter Menu Options.
FME Licensing Level
FME Professional edition and above
Search FME Knowledge Center
Search for samples and information about this transformer on the FME Knowledge Center.