FME Transformers: 2025.2 BETA

Categories
Format Specific
Web

Web

JSONFlattener

Flattens JSON (JavaScript Object Notation) objects, extracting the object keys and values into FME feature attributes.

For example, consider a feature which has an attribute named json containing the following text:

{
   "paramName":"GeocodeResult",
   "dataType":"GPFeatureRecordSetLayer",
   "value":
   {
      "geometryType":"esriGeometryPoint",
      "spatialReference": {"wkid":4326 }
   }
}
 

After going through the JSONFlattener, the following attributes will have been added to the feature:

Attribute Name Attribute Value
paramName GeocodeResult
dataType GPFeatureRecordSetLayer
value.geometryType esriGeometryPoint
value.spatialReference.wkid 4326

Optional Input Port

This transformer has two modes, depending on whether a connector is attached to the Input port or not:

  • Input-driven: When input features are connected, the transformer runs once for each feature it receives in the Input port.
  • Run Once: When no input features are connected, the transformer runs one time and outputs a single new feature.

Configuration

Output Ports

Parameters

Editing Transformer Parameters

Transformer parameters can be set by directly entering values, using expressions, or referencing other elements in the workspace such as attribute values or user parameters. Various editors and context menus are available to assist. To see what is available, click beside the applicable parameter.

For more information, see Transformer Parameter Menu Options.

Reference

Processing Behavior

Feature-Based

Feature Holding

No

Dependencies None
Aliases  
History  

FME Online Resources

The FME Community and Support Center Knowledge Base have a wealth of information, including active forums with 35,000+ members and thousands of articles.

Search for all results about the JSONFlattener on the FME Community.

 

Examples may contain information licensed under the Open Government Licence – Vancouver, Open Government Licence - British Columbia, and/or Open Government Licence – Canada.