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

Output Ports

Parameters

Source

Flattening Parameters

Error Handling Parameters

FME Licensing Level

FME Professional edition and above

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.

Transformer Categories

Format Specific

Web

FME Community

The FME Community is the place for demos, how-tos, articles, FAQs, and more. Get answers to your questions, learn from other users, and suggest, vote, and comment on new features.

Search for samples and information about this transformer on the FME Community.