You are here: Web > JSONFlattener

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

Input Parameters

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

Search FME Knowledge Center

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